I am trying to troubleshoot a startup script. This necessitates multiple reboots and restarting ssh sessions. At seemingly random times the pi becomes ornery.
ssh -vvv 192.168.1.160 -p 22
OpenSSH_7.1p2, OpenSSL 1.0.1g 7 Apr 2014 debug1: Reading configuration data /etc/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.1.160 [192.168.1.160] port 22. debug1: connect to address 192.168.1.160 port 22: Connection refused ssh: connect to host 192.168.1.160 port 22: Connection refused
the pi is alive and well
ping 192.168.1.160 Pinging 192.168.1.160 with 32 bytes of data: Reply from 192.168.1.160: bytes=32 time=5ms TTL=64 Reply from 192.168.1.160: bytes=32 time=5ms TTL=64 Reply from 192.168.1.160: bytes=32 time=4ms TTL=64 Reply from 192.168.1.160: bytes=32 time=7ms TTL=64
It just doesnt want to ssh. When the hdmi cable is connected, the boot sequence looks fine. I have to shut it off by disconnecting the power and then restarting it - then the pi is ssh-able again. The pi is configured to connect to my local wifi with the appropriate credentials in wpa_supplicant.conf and the static ip in dhcpd.conf and it works well, most of the time.