在~/.ssh目录下找到config文件( 没有就创建),添加如下内容:
Host hostname IdentityFile ~/.ssh/id_dsa
参考资料:
http://www.cyberciti.biz/faq/force-ssh-client-to-use-given-private-key-identity-file/
在~/.ssh目录下找到config文件( 没有就创建),添加如下内容:
Host hostname IdentityFile ~/.ssh/id_dsa
参考资料:
http://www.cyberciti.biz/faq/force-ssh-client-to-use-given-private-key-identity-file/