Raspberry Pi4 20.04 SSH connection Error

less than 1 minute read

I want to use my Raspberry Pi4 in External network.
SO, I decide to connect by Visual Studio Code.
But, it’s not working.

Finally, I delete all files of SSH.

It’s not perfect solution.

Things that I did to connect External network.

  1. Remove micro SD card and remake SSH file.

  2. Use TTL to USB. Putty Serial Port, Baud rate 115200.

  3. When Serial Port connected, there is nothing. But just write ID of your RaspberryPi. Then you can see password sentence.

  4. Mine is not working when I write [sudo systemctl start ssh] .

  5. -> sudo apt-get purge openssh-server

  6. -> sudo apt-get install openssh-server


How to install SSH server in Ubuntu

https://www.cyberciti.biz/faq/ubuntu-linux-install-openssh-server/

  1. -> sudo systemctl status ssh

  2. -> sudo sytemctl enable ssh

  3. -> sudo systemctl start ssh

  4. -> sudo reboot

In the end, I can connect WiFi and Ethernet.

But still, I can’t use Visual Studio Code and entire External Network using Port Forwarding.


GO TO TOP

Updated:

Leave a comment