SSH免密登录

设置后,输入 ssh a 即可登录成功
ssh key-gen

vim .ssh/config

`a 是自己设置的别名;root 是服务端的 username
Host a
HostName 192.168.xxx.xxx
Port 22
User root

ssh-copy-id  -o StrictHostKeyChecking=no root@192.168.xxx.xxx [-p 端口号]
https://www.cnblogs.com/luckforefforts/p/13797705.html
https://www.cnblogs.com/huanghongbo/p/6254400.html
posted @ 2022-02-14 14:46  干扰项  阅读(141)  评论(0)    收藏  举报