打开shell 当前用户
cd ~
cd .ssh
vim config
Host (别名)
User root(git) 登陆远程shell的用户
HostName 10.0.0.1 ip地址
Port 端口
:wq
保存退出
ssh (别名)
ssh 配置config 别名
原文:http://www.cnblogs.com/a-flydog/p/6074122.html