vscode ssh 免密码登录

# windows生成秘钥
ssh-keygen -t rsa -N '' -f %HOMEPATH%\.ssh\id_rsa

#复制到远程主机
scp %HOMEPATH%\.ssh\id_rsa.pub root@192.168.60.59:/root/.ssh/authorized_keys

再到Remote explorer添加主机:ssh root@192.168.60.59 -A

posted @ 2022-12-01 17:03  必备神器库公众号  阅读(37)  评论(0编辑  收藏  举报