在当前用户的根目录下:
cd ~/.ssh
vi config
ForwardAgent yes Host 1 Hostname 192.168.1.1 User root Host 2 Hostname 192.168.1.2 User root Host 3 Hostname 192.168.1.3 User root
ssh 1