How do I force SSH to use password instead of key?
up vote
0
down vote
favorite
So I need to log in to a machine using a password instead of a key, which I practically never do. Seems it should be easy but nope, ssh refuses to use anything but a key.
ssh -o PreferredAuthentications=keyboard-interactive -o PubkeyAuthentication=no root@ip-address
root@ip-address: Permission denied (publickey).
ssh
New contributor
add a comment |
up vote
0
down vote
favorite
So I need to log in to a machine using a password instead of a key, which I practically never do. Seems it should be easy but nope, ssh refuses to use anything but a key.
ssh -o PreferredAuthentications=keyboard-interactive -o PubkeyAuthentication=no root@ip-address
root@ip-address: Permission denied (publickey).
ssh
New contributor
You can also temporarily rename your.ssh
directory to preventssh
from accessing your public key:mv .ssh .ssh.save; ssh -vvv ...; rm -f -r .ssh; mv .ssh.save .ssh
If you use the-vvv
or-v -v -v
"max verbose" option, you should get some good information.
– Andrew Henle
Nov 17 at 12:22
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So I need to log in to a machine using a password instead of a key, which I practically never do. Seems it should be easy but nope, ssh refuses to use anything but a key.
ssh -o PreferredAuthentications=keyboard-interactive -o PubkeyAuthentication=no root@ip-address
root@ip-address: Permission denied (publickey).
ssh
New contributor
So I need to log in to a machine using a password instead of a key, which I practically never do. Seems it should be easy but nope, ssh refuses to use anything but a key.
ssh -o PreferredAuthentications=keyboard-interactive -o PubkeyAuthentication=no root@ip-address
root@ip-address: Permission denied (publickey).
ssh
ssh
New contributor
New contributor
New contributor
asked Nov 17 at 10:41
GreyScreenOfMeh
111
111
New contributor
New contributor
You can also temporarily rename your.ssh
directory to preventssh
from accessing your public key:mv .ssh .ssh.save; ssh -vvv ...; rm -f -r .ssh; mv .ssh.save .ssh
If you use the-vvv
or-v -v -v
"max verbose" option, you should get some good information.
– Andrew Henle
Nov 17 at 12:22
add a comment |
You can also temporarily rename your.ssh
directory to preventssh
from accessing your public key:mv .ssh .ssh.save; ssh -vvv ...; rm -f -r .ssh; mv .ssh.save .ssh
If you use the-vvv
or-v -v -v
"max verbose" option, you should get some good information.
– Andrew Henle
Nov 17 at 12:22
You can also temporarily rename your
.ssh
directory to prevent ssh
from accessing your public key: mv .ssh .ssh.save; ssh -vvv ...; rm -f -r .ssh; mv .ssh.save .ssh
If you use the -vvv
or -v -v -v
"max verbose" option, you should get some good information.– Andrew Henle
Nov 17 at 12:22
You can also temporarily rename your
.ssh
directory to prevent ssh
from accessing your public key: mv .ssh .ssh.save; ssh -vvv ...; rm -f -r .ssh; mv .ssh.save .ssh
If you use the -vvv
or -v -v -v
"max verbose" option, you should get some good information.– Andrew Henle
Nov 17 at 12:22
add a comment |
3 Answers
3
active
oldest
votes
up vote
3
down vote
You try using correct parameters for disabling authentication over keys.
Maybe server reject password authentication? Check server ssh configuration.
New contributor
3
Specifically, check forPasswordAuthentication
directive in/etc/ssh/sshd_config
on the server.
– confetti
Nov 17 at 12:04
This was indeed the issue.
– GreyScreenOfMeh
Nov 19 at 10:03
add a comment |
up vote
2
down vote
Permission denied (publickey)
The "(publickey)" string in that error message is the list of authentication methods accepted by the remote server. In this case the remote server only accepts public key authentication. You can change your client parameters all you like, but it won't alter the fact that the server will only accept public key authentication.
To log in with a password, you'd have to start by reconfiguring the remote server to accept password authentication.
add a comment |
up vote
1
down vote
Turns out the solution was to set PasswordAuthentication yes
in /etc/ssh/sshd_config
.
Thanks to the several people who pointed me in the right direction.
New contributor
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
You try using correct parameters for disabling authentication over keys.
Maybe server reject password authentication? Check server ssh configuration.
New contributor
3
Specifically, check forPasswordAuthentication
directive in/etc/ssh/sshd_config
on the server.
– confetti
Nov 17 at 12:04
This was indeed the issue.
– GreyScreenOfMeh
Nov 19 at 10:03
add a comment |
up vote
3
down vote
You try using correct parameters for disabling authentication over keys.
Maybe server reject password authentication? Check server ssh configuration.
New contributor
3
Specifically, check forPasswordAuthentication
directive in/etc/ssh/sshd_config
on the server.
– confetti
Nov 17 at 12:04
This was indeed the issue.
– GreyScreenOfMeh
Nov 19 at 10:03
add a comment |
up vote
3
down vote
up vote
3
down vote
You try using correct parameters for disabling authentication over keys.
Maybe server reject password authentication? Check server ssh configuration.
New contributor
You try using correct parameters for disabling authentication over keys.
Maybe server reject password authentication? Check server ssh configuration.
New contributor
New contributor
answered Nov 17 at 10:52
moveax3
312
312
New contributor
New contributor
3
Specifically, check forPasswordAuthentication
directive in/etc/ssh/sshd_config
on the server.
– confetti
Nov 17 at 12:04
This was indeed the issue.
– GreyScreenOfMeh
Nov 19 at 10:03
add a comment |
3
Specifically, check forPasswordAuthentication
directive in/etc/ssh/sshd_config
on the server.
– confetti
Nov 17 at 12:04
This was indeed the issue.
– GreyScreenOfMeh
Nov 19 at 10:03
3
3
Specifically, check for
PasswordAuthentication
directive in /etc/ssh/sshd_config
on the server.– confetti
Nov 17 at 12:04
Specifically, check for
PasswordAuthentication
directive in /etc/ssh/sshd_config
on the server.– confetti
Nov 17 at 12:04
This was indeed the issue.
– GreyScreenOfMeh
Nov 19 at 10:03
This was indeed the issue.
– GreyScreenOfMeh
Nov 19 at 10:03
add a comment |
up vote
2
down vote
Permission denied (publickey)
The "(publickey)" string in that error message is the list of authentication methods accepted by the remote server. In this case the remote server only accepts public key authentication. You can change your client parameters all you like, but it won't alter the fact that the server will only accept public key authentication.
To log in with a password, you'd have to start by reconfiguring the remote server to accept password authentication.
add a comment |
up vote
2
down vote
Permission denied (publickey)
The "(publickey)" string in that error message is the list of authentication methods accepted by the remote server. In this case the remote server only accepts public key authentication. You can change your client parameters all you like, but it won't alter the fact that the server will only accept public key authentication.
To log in with a password, you'd have to start by reconfiguring the remote server to accept password authentication.
add a comment |
up vote
2
down vote
up vote
2
down vote
Permission denied (publickey)
The "(publickey)" string in that error message is the list of authentication methods accepted by the remote server. In this case the remote server only accepts public key authentication. You can change your client parameters all you like, but it won't alter the fact that the server will only accept public key authentication.
To log in with a password, you'd have to start by reconfiguring the remote server to accept password authentication.
Permission denied (publickey)
The "(publickey)" string in that error message is the list of authentication methods accepted by the remote server. In this case the remote server only accepts public key authentication. You can change your client parameters all you like, but it won't alter the fact that the server will only accept public key authentication.
To log in with a password, you'd have to start by reconfiguring the remote server to accept password authentication.
answered Nov 17 at 15:56
Kenster
4,75021932
4,75021932
add a comment |
add a comment |
up vote
1
down vote
Turns out the solution was to set PasswordAuthentication yes
in /etc/ssh/sshd_config
.
Thanks to the several people who pointed me in the right direction.
New contributor
add a comment |
up vote
1
down vote
Turns out the solution was to set PasswordAuthentication yes
in /etc/ssh/sshd_config
.
Thanks to the several people who pointed me in the right direction.
New contributor
add a comment |
up vote
1
down vote
up vote
1
down vote
Turns out the solution was to set PasswordAuthentication yes
in /etc/ssh/sshd_config
.
Thanks to the several people who pointed me in the right direction.
New contributor
Turns out the solution was to set PasswordAuthentication yes
in /etc/ssh/sshd_config
.
Thanks to the several people who pointed me in the right direction.
New contributor
New contributor
answered Nov 19 at 10:05
GreyScreenOfMeh
111
111
New contributor
New contributor
add a comment |
add a comment |
GreyScreenOfMeh is a new contributor. Be nice, and check out our Code of Conduct.
GreyScreenOfMeh is a new contributor. Be nice, and check out our Code of Conduct.
GreyScreenOfMeh is a new contributor. Be nice, and check out our Code of Conduct.
GreyScreenOfMeh is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1376201%2fhow-do-i-force-ssh-to-use-password-instead-of-key%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
You can also temporarily rename your
.ssh
directory to preventssh
from accessing your public key:mv .ssh .ssh.save; ssh -vvv ...; rm -f -r .ssh; mv .ssh.save .ssh
If you use the-vvv
or-v -v -v
"max verbose" option, you should get some good information.– Andrew Henle
Nov 17 at 12:22