ssh在debian链接远程linux时,权限要设置一下。html
id_rsa文件要改为600,linux
参考:Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open处理shell
使用命令:ssh
ssh user@host -i id_rsa