1. install openssh-client on Ubuntu by default, so it will not be installed here. If your system is not installed, use apt-get to install it. Install ssh-serversudoapt-getinstallopenssh-server install ssh-clientsudoapt-getinstallopenssh-client2. Check if sshserver has installed ps-e | grepssh
1. Install
Openssh-client is installed by default in Ubuntu, so it is not installed here. If your system is not installed, use apt-get to install it.
Install ssh-server
Sudo apt-get install openssh-server
Install ssh-client
Sudo apt-get install openssh-client
2. Check whether sshserver is installed.
Ps-e | grep sshd
450? 00:00:00 sshd
If you see sshd, it indicates that the ssh-server has been started.
If only ssh-agent is available, it indicates that the ssh-server has not been started. You need to run the following command to start the ssh service:
/Etc/init. d/ssh start;
Note: Only sshd is displayed in the ubuntu-12.04-server-i386.iso installation:
3. Extended Configuration
The default SSH service port is 22. You can define it as another port, such as 222. The configuration file to be modified is:
/Etc/ssh/sshd_config
Modify the Port parameter to 222.
Then restart the SSH service:
Sudo/etc/init. d/ssh restart
You may also like the following SSH-related articles. For details, refer:
The whole process of configuring SSH service under Ubuntu and the solution of http://www.linuxidc.com/Linux/2011-09/42775.htm
Method http://www.linuxidc.com/Linux/2015-01/111971.htm for installing Samba and SSH server in Ubuntu 14.04
SSH service remote access Linux Server login slow http://www.linuxidc.com/Linux/2011-08/39742.htm
Approach to improving the SSH login authentication speed for Ubuntu http://www.linuxidc.com/Linux/2014-09/106810.htm
Enable SSH service for Android phones to remotely access Ubuntu 14.04 http://www.linuxidc.com/Linux/2014-09/106809.htm
How to add a dual authentication http://www.linuxidc.com/Linux/2014-08/105998.htm for SSH in Linux
Configure the SFTP environment http://www.linuxidc.com/Linux/2014-08/105865.htm for non-SSH users in Linux
Http://www.linuxidc.com/Linux/2014-06/103627.htm for configuring and managing SSH services on Linux
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-08/121785.htm