SSH server hasn't been installed by Ubuntu Linux by default. If you want to use SSH remote connect to your Ubuntu Linux, you should install SSH server manually.
To check if SSH server is installed or not:
$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
The above output means that there is no SSH server installed.
To install SSH server:
$ sudo apt-get install openssh-server
The SSH service will be started automatically.
The following command check if SSH server started or not:
$ ps -e|grep ssh
606 ? 00:00:00 sshd
That means SSH server is started.
The default port for SSH server is 22, which can be updated in /etc/ssh/sshd_config.
阅读(278) | 评论(0) | 转发(0) |