cptnemo
Posts: 3
Joined: Tue Apr 23, 2013 11:46 am

ssh connection stopped working

Fri Apr 05, 2019 11:26 pm

Hi,

Here my setup:

I have a Raspberry Pi 3B (with Raspbian Stretch Lite) running a Plex server connected to Google WiFi and the LAN. The point of having both connections is that it can serve videos to the TV via LAN and I can remote controlling it via WiFi from my Mac (10.13.6 and with no Ethernet port).

The Plex server works fine: I can access it from my TV (via LAN) and from my computer browser (via WiFi).That is, the RPI is connected to my WiFi network and I know the WiFi IP address because I clearly see when I login into Plex from a browser.

The problem: I can't ssh login into my Raspberry Pi anymore (it did work, it just stopped working). And I am not sure where is the problem: RPi, Mac or routers (either ethernet or Google WiFi?)

What I tried:
  • Adding a ssh file in the SD root
  • Restart router and Google WiFi
  • Connect from a different computer over WiFi
  • Connect from the same computer over LAN

It doesn't work. Suggestions on how to debug it also very much appreciated!

User avatar
HawaiianPi
Posts: 5888
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: ssh connection stopped working

Sat Apr 06, 2019 8:07 am

When you attempt to SSH into the Pi try adding -v or -vvv to get more detailed error messages (ssh -vvv pi@xxx.xxx.xxx.xxx).

For things like this a serial console cable is really helpful. It connects to the Pi GPIO serial port and allows you to login from a serial terminal on another computer, without a network connection. You can also watch boot and shutdown messages on headless systems.

Image

I use inexpensive CP2102 USB-TTL adapters from ebay that cost less then $2 (a bit more if you want fast shipping). They are 3.3V TTL, so they work with the Pi GPIO.

The connections are:
  • Ground to Ground
  • TXD to RXD (transmit to receive)
  • RXD to TXD (receive to transmit)
On the Pi GPIO, that would be:
Without a serial cable, you're best bet might be to connect a keyboard and screen to troubleshoot and fix the problem.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

cptnemo
Posts: 3
Joined: Tue Apr 23, 2013 11:46 am

Re: ssh connection stopped working

Sat Apr 06, 2019 12:14 pm

This is whay I get with -v

OpenSSH_7.8p1, LibreSSL 2.6.2
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to 192.168.86.125 [192.168.86.125] port 22.
debug1: connect to address 192.168.86.125 port 22: Connection refused
ssh: connect to host 192.168.86.125 port 22: Connection refused

Return to “Troubleshooting”