Openssh-server is not installed in Ubuntu by default. to access it through the SSH protocol, you must install sshserver. For installation, select apt-get on Ubuntu. Next we will discuss how to use apt-get + configuration proxy to download and install openssh-server. Setp1: Check whether the ssh command is installed: dpkg -- list | grepssh: if there is op
Openssh-server is not installed in Ubuntu by default. to access it through the SSH protocol, you must install the ssh server. For installation, select apt-get on Ubuntu. Next we will discuss how to use apt-get + configuration proxy to download and install openssh-server.
Setp1:
Check if ssh is installed
Command: dpkg -- list | grep ssh
Appears:
If openssh-client and openssh-server are installed
If not, enter the following command:
Sudo apt-get install openssh-server
Later, Ubuntu automatically downloads and installs openssh server, and resolves all dependencies. After completing this operation, you can find another computer and then use an SSH client (PuTTy is strongly recommended) to enter the IP address of your server. If everything is normal, you can connect later. You can log on with the existing user name and password.
Step 2: Check whether ssh is enabled
Command: ps-ef | grep ssh
Appears:
If there is an ssh keyword, it indicates that it has been started.
If it is not started, enter the following command: sudo/etc/init. d/ssh start
After startup:
* Starting OpenBSD Secure Shell server sshd [OK] indicates that the startup is successful.
To stop the service, run the following command: sudo/etc/init. d/ssh stop
After startup:
* Stopping OpenBSD Secure Shell server sshd [OK] indicates that the stop is successful.
OpenSSH Server is installed. To ensure network installation, further settings and optimization are required, which can shorten OpenSSH logon time and improve security and reliability. All of this is implemented by modifying the openssh configuration file sshd_config.
First, open the sshd_config file:
#/Etc/ssh/sshd_config
Find the GSSAPI options section and comment out the following two lines:
# GSSAPIAuthentication yes
# GSSAPIDelegateCredentials no
Using PuTTy to log on to the SSH service through certificate authentication, all the content is encrypted and the security is basically guaranteed. However, if you can use the Certificate for authentication, the security will be further improved, and after some settings, you can also achieve the effect of automatic login for certificate authentication.
Then modify and enable the certificate authentication option:
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile % h/. ssh/authorized_keys
Next, we need to create a private key and a public key for the SSH user. First, you need to log on to the account that requires key establishment. Here, you must exit the root user. If necessary, use the su command to switch to another user. Then run:
Ssh-keygen
Here, we can store the generated key in the default directory. The passphrase will be prompted During the creation process. This is equivalent to adding a password to the certificate, which is also a measure to improve security.
The ssh-keygen command generates two keys:
After all settings are complete, restart the server. Then use an SSH client software (PuTTy is strongly recommended) to log on to the host that has installed the SSH service and enter the correct key so that you can remotely manipulate it.
This is the PuTTY software interface.
Enter the user name and password for remote control!
OpenSSH details: Click here
OpenSSH: Click here
Reading:
Solve http://www.linuxidc.com/Linux/2013-07/86879.htm with latency issues during OpenSSH Remote Login
Ubuntu 12.10 OpenSSH offline Installation Method http://www.linuxidc.com/Linux/2013-04/82814.htm
OpenSSH upgrade steps and precautions http://www.linuxidc.com/Linux/2013-04/82123.htm
OpenSSH common users cannot log on to several cases solution http://www.linuxidc.com/Linux/2012-05/59457.htm
General thread: OpenSSH key management, Part 1 RSA/DSA certified http://www.linuxidc.com/Linux/2011-08/39871.htm
RedHat install OpenSSH and configure sftp lock directory http://www.linuxidc.com/Linux/2012-12/75398.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2