Saturday, December 6, 2014

ssh: connect to host 192.168.57.30 port 22: Connection refused

If you have a machine with a user wso2 and you are trying to ssh to it from another machine, you will do something like below.

ssh wso2@192.168.57.30

Sometimes you will get the following error while doing the above.

ssh: connect to host 192.168.57.30 port 22: Connection refused

There might be several reasons for this.

If you don't have openssh-server installed on your machine, you will get the above error.

Run this command to install openssh-server.

sudo apt-get install openssh-server

You will be able to ssh now.

No comments:

Post a Comment