生成和导入密钥

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

IP换成须要访问的服务器IPgit