10/6/12

SSH errors and tips - Ubuntu

If you're trying to connect to remote machine via ssh and receiving the error below:

"ssh: connect to host <hostname> port 22: Connection refused"

Follow the instructions below to solve this issue:

// Login directly to the remote machine

// Check that the ssh service on the remote machine is running
[user@server]$ sudo service ssh status

If you receiving the following massage: ssh stop/waiting than the ssh service is not running.

// Restart the ssh service
[user@server]$ sudo service ssh restart

It will pop up the following massage: 
ssh start/running, process <process number>


--------------------------------------


If you're trying to connect to remote machine via ssh and receiving the error below:


"Read from socket failed: Connection reset by peer"

Follow the instructions below to solve this issue:

// Login directly to the remote machine

// Check that the ssh service on the remote machine is running
[user@server]$ sudo service ssh status

// Generate the public/private keys:
[user@server]$ sudo sshd-generate

No comments:

Post a Comment