我有一台刚刚打开的服务器。当我使用ssh as时nt_deployer
,它要求我输入ssh密码:
Nets-Mac-Pro:mysite emai$ ssh nt_deployer@mysite-staging.nettheory.com
Enter passphrase for key '/Users/emai/.ssh/id_rsa':
nt_deployer@mysite-staging.nettheory.com's password:
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-29-generic x86_64)
但是,当我使用ssh时emai
,它不会询问:
Nets-Mac-Pro:mysite emai$ ssh emai@mysite-staging.nettheory.com
emai@mysite-staging.nettheory.com's password:
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-29-generic x86_64)
有人可以告诉我如何阻止密码提示出现nt_deployer
吗?
ssh-keygen
,您很可能破坏了前一个密钥。您知道为什么还要拥有一个吗?
ssh-keygen
并成功了