配置SSH密匙免密登录
Arn0

一个能延长键盘使用寿命的小技巧

先在远程主机设置密匙

生成秘钥

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

创建authorized_keys

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

再设置本地主机

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

然后创建本地主机authorized_keys

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

完成

 Comments