Ubuntu16.04 server configuration ssh password-free login, ubuntu16.04ssh

Source: Internet
Author: User

Ubuntu16.04 server configuration ssh password-free login, ubuntu16.04ssh
The original document is in English. The link is to write/home/try/in the region-t rsa file /. ssh/server_rsa, do not use the default value, I named server_rsa worried about affecting git's key (because my git uses the default value) ssh-copy-id root@123.45.56.78 (your server ip ), or use cat ~ /. Ssh/id_rsa.pub | ssh user@123.45.56.78 "mkdir-p ~ /. Ssh & cat> ~ /. Ssh/authorized_keys "to upload the client key to the server ~ The/. ssh/authorized_keys file can also be copied manually. On the server side, change sudo nano/etc/ssh/sshd_config to without-password, and enable root password-free logon, that is, PermitRootLogin without-password.Ssh shorthand skillsVim ~ /. Add Host lisa via ssh/config. Remember to add HostName 188.166.225.189 your server ip address User root Port 9999 (custom Port, not recommended) (the last two are not used, the first three are sufficient) IdentityFile ~ /. Ssh/id_rsa Authentication key location, if has been transferred to the server does not need this can be achieved using ssh lisa to replace the ssh root@188.166.225.186 Effect

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.