Arn0's Blog

Live your life with passion.
With 三倍Ice Cream !!!

  1. 1. 先在远程主机设置密匙
    1. 1.1. 生成秘钥
    2. 1.2. 创建authorized_keys
  2. 2. 再设置本地主机
  3. 3. 完成

先在远程主机设置密匙

生成秘钥

ssh-keygen -t rsa -C "名字"

创建authorized_keys

cat .ssh/id_rsa.pub > .ssh/authorized_keys

再设置本地主机

将远程主机的id_rsaid_rsa.pub 复制到本地主机普通用户.ssh目录

然后创建本地主机authorized_keys

cat .ssh/id_rsa.pub > .ssh/authorized_keys

完成

This article was last updated on days ago, and the information described in the article may have changed.