Use iterm2 ssh password-free login under Mac

Source: Internet
Author: User

The server is ready to work:

1. Log in to the server to modify the sshd configuration file

VI  /etc/ssh/sshd_config

Find the following uncomment #

Rsaauthentication Yes pubkeyauthentication Yes authorizedkeysfile. SSH

2. If you modify the configuration file, you need to restart the SSHD service

Native configuration:

1. Generate public and private keys

The default is to generate two files in the ~/.ssh directory:

2. Import the public key authentication file

Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

3. Copy the public key to the server

4. Import the public key into a serious file (on the server)

Cat/home/id_rsa.pub >> ~/.ssh/authorized_keys

5. Server Modification Permissions

chmod ~/.ssh chmod ~/.ssh/authorized_keys

6. Modify the configuration file under Mac for this quarter ~/.ssh/config

192.168.11.11~/.ssh/id_rsa

7. Terminal execution SSH test link remote server

Use iterm2 ssh password-free login under Mac

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.