如何生成id_dsa.pub? 先检测有没有:ls -ls ~/.ssh/ 如果没有id_dsa.pub,继续ssh-keygen -t rsa -C “xxx” 说明:xxx一般是主机名(使用hostname命令可查看当前主机名)