进入~/.ssh/目录中添加config文件,写入如下内容:
Host slave1 HostName 192.168.200.123 User slave1 Host slave2 HostName 192.168.200.124 User slave2