vim .ssh/config
Host root
Hostname 123.56.234.187
Port 50822
User root
编写config后执行下面的命令,就可以ssh root直接免密远程连接root用户
ssh-keygen
ssh-copy-id Host
vim .ssh/config
Host root
Hostname 123.56.234.187
Port 50822
User root
编写config后执行下面的命令,就可以ssh root直接免密远程连接root用户
ssh-keygen
ssh-copy-id Host