在本机操做命令(192.168.1.2)bash
首先生成本机密钥服务器
ssh-keygen -t rsa
而后复制密钥到须要登陆的远程服务器ssh
ssh-copy-id -i .ssh/id_rsa.pub test@192.168.1.3
完成操做便可快速登陆远程服务器code