1、ssh-keygen -t rsa
2、cat ~/.ssh/id_rsa.pub | ssh {host}@{ip} 'cat>>.ssh/authorized_keys'
1、ssh-keygen -t rsa
2、cat ~/.ssh/id_rsa.pub | ssh {host}@{ip} 'cat>>.ssh/authorized_keys'
本文标题:git / ssh 不用每次都输入密码的方法
本文链接:https://www.haomeiwen.com/subject/cszixttx.html
网友评论