Connect to LINUX through SSH

Source: Internet
Author: User
SSH connection to LINUX-Linux Enterprise Application-Linux server application information. The following is a detailed description. The default configuration file has been installed. The default configuration file is in/etc/ssh/sshd_config.

Port = 22 modifiable port number

PermitEmptypasswords no empty password login prohibited by default

PasswordAuthentication yes uses the password mode by default. If the public key mode is changed to no

SSH Public Key Usage Method
Change passwordAuthentication yes to no. Restart required

To http://www.chiark.greenend.org.uk /~ Sgtatham/putty/download.html download the secret program puttygen.exe

After the download is complete, run the program. On the main interface, select the encryption algorithm "Type of key generate" and enter the Number of bits in a generated key, we recommend that you set the default value to 1024-bit encryption for ssh2 RSA.

Key passphrase can be empty.
Save public key geong. pub
Save private key geong. ppk

Private Key geong. ppk saved to log on to the user's local machine.

The Public Key geong. pub is saved to the server/root/. ssh Directory, which needs to be created manually.

The public key file generated by puttyken needs to be converted to the required format using the following command:
Ssh-keygen-I-f/root/. ssh/geong. pub>/root/. ssh/authorized_keys

You can log on again to implement the Public Key Authentication mode.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.