ssh-copy-id test@10.112.34.129
echo 'alias T="ssh test@10.112.34.129"' >> ~/.bashrc
其中,test为目标机器的用户名,10.112.34.129为目标机器的IP,后续在命令行敲T,直接ssh到目标机器。
ssh-copy-id test@10.112.34.129
echo 'alias T="ssh test@10.112.34.129"' >> ~/.bashrc
其中,test为目标机器的用户名,10.112.34.129为目标机器的IP,后续在命令行敲T,直接ssh到目标机器。