ssh-copy-id public key denied
up vote
0
down vote
favorite
I'm trying to copy my public ssh key to my vps, so I can log in with ssh
.
However, when I enter the command:
ssh-copy-id me@myserver
I get this error message
/usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/local/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Permission denied (publickey).
Does anybody know how to fix this? I'm on a Mac.
ssh ssh-keys
add a comment |
up vote
0
down vote
favorite
I'm trying to copy my public ssh key to my vps, so I can log in with ssh
.
However, when I enter the command:
ssh-copy-id me@myserver
I get this error message
/usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/local/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Permission denied (publickey).
Does anybody know how to fix this? I'm on a Mac.
ssh ssh-keys
see if you can log in manually and write to the file that it will be adding to, the authorized_keys file. ~/.ssh/authorized_keys If you can then the ssh-copy-id should work. If not then see what stage gives a problem The side you are logging into has to accept password login for you to get in. You can remove passwordlogin once ssh-copy-id has done its thing and enabled you to login via key. PasswordAuthentication yes (in sshd_config) file
– barlop
Mar 16 '15 at 10:28
thanks Jawa, that was indeed the solution. The issue I had, was that in the sshd_config file the PasswordAuthentication occured twice, and 'PasswordAuthentication yes' was overruled by 'PasswordAuthentication no'. I discovered this after three days of troubleshooting : )
– Anthony Candaele
Mar 18 '15 at 10:43
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to copy my public ssh key to my vps, so I can log in with ssh
.
However, when I enter the command:
ssh-copy-id me@myserver
I get this error message
/usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/local/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Permission denied (publickey).
Does anybody know how to fix this? I'm on a Mac.
ssh ssh-keys
I'm trying to copy my public ssh key to my vps, so I can log in with ssh
.
However, when I enter the command:
ssh-copy-id me@myserver
I get this error message
/usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/local/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Permission denied (publickey).
Does anybody know how to fix this? I'm on a Mac.
ssh ssh-keys
ssh ssh-keys
edited Mar 16 '15 at 10:25
Jawa
3,15982435
3,15982435
asked Mar 16 '15 at 10:14
Anthony Candaele
111
111
see if you can log in manually and write to the file that it will be adding to, the authorized_keys file. ~/.ssh/authorized_keys If you can then the ssh-copy-id should work. If not then see what stage gives a problem The side you are logging into has to accept password login for you to get in. You can remove passwordlogin once ssh-copy-id has done its thing and enabled you to login via key. PasswordAuthentication yes (in sshd_config) file
– barlop
Mar 16 '15 at 10:28
thanks Jawa, that was indeed the solution. The issue I had, was that in the sshd_config file the PasswordAuthentication occured twice, and 'PasswordAuthentication yes' was overruled by 'PasswordAuthentication no'. I discovered this after three days of troubleshooting : )
– Anthony Candaele
Mar 18 '15 at 10:43
add a comment |
see if you can log in manually and write to the file that it will be adding to, the authorized_keys file. ~/.ssh/authorized_keys If you can then the ssh-copy-id should work. If not then see what stage gives a problem The side you are logging into has to accept password login for you to get in. You can remove passwordlogin once ssh-copy-id has done its thing and enabled you to login via key. PasswordAuthentication yes (in sshd_config) file
– barlop
Mar 16 '15 at 10:28
thanks Jawa, that was indeed the solution. The issue I had, was that in the sshd_config file the PasswordAuthentication occured twice, and 'PasswordAuthentication yes' was overruled by 'PasswordAuthentication no'. I discovered this after three days of troubleshooting : )
– Anthony Candaele
Mar 18 '15 at 10:43
see if you can log in manually and write to the file that it will be adding to, the authorized_keys file. ~/.ssh/authorized_keys If you can then the ssh-copy-id should work. If not then see what stage gives a problem The side you are logging into has to accept password login for you to get in. You can remove passwordlogin once ssh-copy-id has done its thing and enabled you to login via key. PasswordAuthentication yes (in sshd_config) file
– barlop
Mar 16 '15 at 10:28
see if you can log in manually and write to the file that it will be adding to, the authorized_keys file. ~/.ssh/authorized_keys If you can then the ssh-copy-id should work. If not then see what stage gives a problem The side you are logging into has to accept password login for you to get in. You can remove passwordlogin once ssh-copy-id has done its thing and enabled you to login via key. PasswordAuthentication yes (in sshd_config) file
– barlop
Mar 16 '15 at 10:28
thanks Jawa, that was indeed the solution. The issue I had, was that in the sshd_config file the PasswordAuthentication occured twice, and 'PasswordAuthentication yes' was overruled by 'PasswordAuthentication no'. I discovered this after three days of troubleshooting : )
– Anthony Candaele
Mar 18 '15 at 10:43
thanks Jawa, that was indeed the solution. The issue I had, was that in the sshd_config file the PasswordAuthentication occured twice, and 'PasswordAuthentication yes' was overruled by 'PasswordAuthentication no'. I discovered this after three days of troubleshooting : )
– Anthony Candaele
Mar 18 '15 at 10:43
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I had the same problem, the way that worked for me was to put it mannually, in this link you can find how to do it Manually entry. In this way i was able to connect via ssh even when using pair keys. When i was configuring it, the .ssh/authorized_keys file contain another key pointing to the initial machine, so i override that information with the contained in the /.ssh/id_rsa.pub of the initial machine
1
If you can Edit your answer with more details not just the link
– Sam
May 2 '17 at 9:02
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I had the same problem, the way that worked for me was to put it mannually, in this link you can find how to do it Manually entry. In this way i was able to connect via ssh even when using pair keys. When i was configuring it, the .ssh/authorized_keys file contain another key pointing to the initial machine, so i override that information with the contained in the /.ssh/id_rsa.pub of the initial machine
1
If you can Edit your answer with more details not just the link
– Sam
May 2 '17 at 9:02
add a comment |
up vote
0
down vote
I had the same problem, the way that worked for me was to put it mannually, in this link you can find how to do it Manually entry. In this way i was able to connect via ssh even when using pair keys. When i was configuring it, the .ssh/authorized_keys file contain another key pointing to the initial machine, so i override that information with the contained in the /.ssh/id_rsa.pub of the initial machine
1
If you can Edit your answer with more details not just the link
– Sam
May 2 '17 at 9:02
add a comment |
up vote
0
down vote
up vote
0
down vote
I had the same problem, the way that worked for me was to put it mannually, in this link you can find how to do it Manually entry. In this way i was able to connect via ssh even when using pair keys. When i was configuring it, the .ssh/authorized_keys file contain another key pointing to the initial machine, so i override that information with the contained in the /.ssh/id_rsa.pub of the initial machine
I had the same problem, the way that worked for me was to put it mannually, in this link you can find how to do it Manually entry. In this way i was able to connect via ssh even when using pair keys. When i was configuring it, the .ssh/authorized_keys file contain another key pointing to the initial machine, so i override that information with the contained in the /.ssh/id_rsa.pub of the initial machine
answered May 2 '17 at 8:46
camilo040494
1
1
1
If you can Edit your answer with more details not just the link
– Sam
May 2 '17 at 9:02
add a comment |
1
If you can Edit your answer with more details not just the link
– Sam
May 2 '17 at 9:02
1
1
If you can Edit your answer with more details not just the link
– Sam
May 2 '17 at 9:02
If you can Edit your answer with more details not just the link
– Sam
May 2 '17 at 9:02
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f890128%2fssh-copy-id-public-key-denied%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
see if you can log in manually and write to the file that it will be adding to, the authorized_keys file. ~/.ssh/authorized_keys If you can then the ssh-copy-id should work. If not then see what stage gives a problem The side you are logging into has to accept password login for you to get in. You can remove passwordlogin once ssh-copy-id has done its thing and enabled you to login via key. PasswordAuthentication yes (in sshd_config) file
– barlop
Mar 16 '15 at 10:28
thanks Jawa, that was indeed the solution. The issue I had, was that in the sshd_config file the PasswordAuthentication occured twice, and 'PasswordAuthentication yes' was overruled by 'PasswordAuthentication no'. I discovered this after three days of troubleshooting : )
– Anthony Candaele
Mar 18 '15 at 10:43