Sample Header Ad - 728x90

SSH No route to host in local network after using rsync

0 votes
2 answers
1932 views
So, this is my setup: I have computer A and a computer B, both with Ubuntu 20.01. Each computer has openssh-server working just fine. Yesterday, I used rsync to copy a large file from A to B, and it didn't seem to have any issue (it was the first time rsync was used). Today, I tried to connect via SSH from B to A and I had a "No route to host" error. Then I tried to connect via SSH from A to B and "No route to host" happened again. Then, on each computer I did a: ssh user@127.0.0.1 and none gave me any issue. Then, I did a: ssh -T git@github.com on both computers and both were successful. Then, I did an: nmap -Pn -p22 192.168.xx.yy on both computers trying to connect to the other, the results are: PORT STATE SERVICE nmap tested in A with IP of A: 22/tcp filtered ssh nmap tested in A with IP of B: 22/tcp open ssh nmap tested in B with IP of A: 22/tcp filtered ssh nmap tested in B with IP of B: 22/tcp open ssh What really bugs me out is that yesterday, before using rsync, the ssh connection was working just fine. The file was copied successfully, and both computers have been restarted since, so I don't know if there's some file that was corrupted or something like that. I'm not even sure if the rsync is what caused the issue. Just to be sure, in computer A, I did a: sudo lsof -i -P -n | grep 192.168 And the only IP address that I see is the one from A. Not sure if this might help, but I only used one rsync command, and is the one that follows: rsync -rvz -e 'ssh -p XXXX' --progress /PATH/TO/SOURCE/FILE user@192.168.xx.yy:/PATH/TO/DESTINATION/FILE EDIT: I don't think the path is the issue, since I ran rsync from a dicerctory in /home/user, but for disclosure, the actual rsnc command was: rsync -rvz -e 'ssh -p 2222' --progress ./someDB.sql user@192.168.0.70:/home/user/DBs And as for the absolute path of where I ran the command, it was: /home/user/DB/
Asked by DanielUPPA (1 rep)
Jan 12, 2021, 09:25 PM
Last activity: Jul 29, 2025, 05:00 PM