ripat wrote:Can you ping the rpi from the Windows box?
No I cannot, nor can I ping from Windows box from the rpi. In both cases 100% loss of packets.
Try to look into auth.log to see any abnormalities.
I checked auth.log before and after trying a failed connection over putty.
[img]

- auth-log.jpg (49.16 KiB) Viewed 2420 times
[/img]
You can also increase the verbosity of sshd in the /etc/ssh/sshd_config file (LogLevel DEBUG) and restart sshd (sudo /etc/init.d/ssh restart)
I did that but ...
Then check the log file after a failed connection:
... I couldnt find this command on the pi. There was no apt-get install for this command, and the alternative suggested by google was to update systemd via debian backports. Was not sure I should do that.
Also check for any firewall rules that could prevent the connection:
Code: Select all
sudo iptables-save
or
sudo iptables -L
The first command did not return any results.
The second command gave this
[img]

- iptables.jpg (34.82 KiB) Viewed 2420 times
[/img]
I know its not a firewall issue because I use my Windows machine to ssh to linux machines on AWS.
Check also the TCP wrapper:
The file does not have any host entries, only some comments.