生成和导入密钥

# ssh-keygen -t rsa
# ssh git@192.168.1.2 'cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub

IP换成需要访问的服务器IP

posted @ 2018-09-06 19:17  ヾJ﹍Hヾ  阅读(130)  评论(0编辑  收藏  举报