I have a Raspberry Pi Rev 3 Model B. I have used Tera Term's SSH to connect to my Pi many times in the past, although when I tried to connect yesterday it was the first time I had tried in about a month. I tried the 5 steps in SSH - connection timeout when connecting to verify that the Raspberry Pi could SSH to itself. When I tried to connect from my laptop, the screen just remained black:
Oddly enough, if I attach a monitor to the Pi and use the Pi to ssh itself via "ssh 192.168.1.4" it is able to connect and it also recognizes that the last login was from my laptop IP. If I purposely enter a wrong password from my laptop it also rejects that attempt, leading me to believe that there is actually a connection to the Pi. My Pi is the 192.168.1.4, laptop is 192.168.1.8
I have also tried using Putty. With both Tera Term and Putty, eventually I am able to connect:
Despite connecting, when I try to send commands they do not act like I expect. For example, I tried to just go to the desktop by doing "cd Des" followed by a tab to complete Desktop. It seems as though the cursor moved as if the line was completed, but the directory didn't appear to change. While grabbing the screenshot the connection also shut down while idling, nothing seemed to change on the Pi's monitor.
I swapped to my desktop and was immediately able to connect, but there was a strange echo despite using the same settings I was accustomed to:
After rebooting the Pi I connected from my laptop again. The weird echo from below happened when typing "cd Desk" + tab
I tried reinstalling a fresh version of Raspbian using NOOBS, but the problem is still there.
What could cause the Pi's SSH to:
- Randomly be able to successfully be connected to from other PCs
- Have odd echoes from text input
- Ignore some commands (i.e. ls after I manage to successfully change directories)
/ssh-v
option, the protocol debugging messages may give a clue about what the failure might be when attempting to connect... for information about how to use the options from the command line, see the documentation