Log in to Linux with your Mac's terminal via public key and SSH

Source: Internet
Author: User
Just start using the Mac, will find it difficult to use, in the online search method also passable, through their own practice, find the following method, very easy to use, the steps are very simple 1. Create a folder under the personal directory of Mac:. ssh.   Use Ssh-keygen in this folder and then generate a pair of public private keys in this directory. Public Key name Id_rsa.pub, private key Name: Id_rsa (the private key is equivalent to the password, it can be placed in this directory) 2. Copy the information in the public key to the file on the machine you want to log on to ~/ssh/authorized_keys, this file can be multi-line, More than one computer can be connected to the machine; 3. Then log in to the Linux machine via SSH on terminal.

Log in to Linux with your Mac's terminal via public key and SSH

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.