在本機操做命令(192.168.1.2)bash
首先生成本機密鑰服務器
ssh-keygen -t rsa
而後複製密鑰到須要登陸的遠程服務器ssh
ssh-copy-id -i .ssh/id_rsa.pub test@192.168.1.3
完成操做便可快速登陸遠程服務器code