ssh: connect to host 192.168.57.1 port 22: Connection refused lost connection

By Apul Gupta

I have two linux server running one having static IP(192.168.56.1) other with a static IP(192.168.57.1). I am able to ping both the servers with there static IP but when I tried to move a txt file from one machine to other

scp /home/sample.txt root@192.168.56.1:/home

I got an error ssh: connect to host 192.168.57.1 port 22: Connection refused lost connectionI tried all the things like

sudo apt-get purge ssh-server
sudo apt-get install ssh-server ssh-client

and iptables but the problem still persist

Source:: http://askubuntu.com/questions/870738/ssh-connect-to-host-192-168-57-1-port-22-connection-refused-lost-connection


Leave a Reply