Turn http://blog.csdn.net/lifengxun20121019/article/details/13627757
I encountered this problem when I was practicing remote login tool SECURECRT.
Ubuntu is installed by default openssh-client, so it is not installed here, if your system is not installed, then use the Apt-get installation can be.
Then confirm that the Sshserver is started:
Ps-e |grep SSH
If only ssh-agent that Ssh-server has not started, need to/etc/init.d/ssh start, if you see the sshd that shows that Ssh-server has been started.
Ssh-server configuration file is located in/Etc/ssh/sshd_config, where you can define the SSH service port, the default port is 22, you can define yourself as a different port number, such as 222. Then restart the SSH service:
Sudo/etc/init.d/ssh Resar
1. First install the server side of SSH on the server.
$ sudo aptitude install Openssh-server
2. Start Ssh-server.
$/etc/init.d/ssh Restart
3. Confirm that the Ssh-server is working properly.
$ NETSTAT-TLP
See above this line of output shows that Ssh-server is already running.
4. Log in to the server via SSH on the client.
SECURECRT the remote system refused the connection.