SCP with password authentication only doesn't ask me for password
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I'm trying to copy files from one server to another with scp.
On both servers, I configured ssh port to 222. sshd_config for both servers is exactly the same (no RootLogin, PasswordAuthentication enabled)
For many reasons too long to explain here, I can't use key authentication.
When I use scp to copy from server A to server B (logged to A), it works. But it doesn't work when I'm doing the same thing from B to A (logged to B) : I get an error message "permission denied" and scp doesn't ask me for password (although the password authentication is enabled)
Here is the command I use (logged on server B) :
scp -P 222 -vvv ~/backup/file user@serverA:/home/user/backup
And here are the last lines of the output :
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: password
debug3: start over, passed a different list password
debug3: preferred publickey,keyboard-interactive
debug1: No more authentication methods to try.
user@serverA: Permission denied (password).
Why doesn't scp ask me for password, whereas "password" is enabled (as it is written in the 2nd "debug1" line) ?
Thank you.
ssh scp
New contributor
add a comment |Â
up vote
1
down vote
favorite
I'm trying to copy files from one server to another with scp.
On both servers, I configured ssh port to 222. sshd_config for both servers is exactly the same (no RootLogin, PasswordAuthentication enabled)
For many reasons too long to explain here, I can't use key authentication.
When I use scp to copy from server A to server B (logged to A), it works. But it doesn't work when I'm doing the same thing from B to A (logged to B) : I get an error message "permission denied" and scp doesn't ask me for password (although the password authentication is enabled)
Here is the command I use (logged on server B) :
scp -P 222 -vvv ~/backup/file user@serverA:/home/user/backup
And here are the last lines of the output :
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: password
debug3: start over, passed a different list password
debug3: preferred publickey,keyboard-interactive
debug1: No more authentication methods to try.
user@serverA: Permission denied (password).
Why doesn't scp ask me for password, whereas "password" is enabled (as it is written in the 2nd "debug1" line) ?
Thank you.
ssh scp
New contributor
You sure that PW auth foruser
is enabled? If I try this with PW and-vvv
I get this output:debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
â Lenniey
3 hours ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm trying to copy files from one server to another with scp.
On both servers, I configured ssh port to 222. sshd_config for both servers is exactly the same (no RootLogin, PasswordAuthentication enabled)
For many reasons too long to explain here, I can't use key authentication.
When I use scp to copy from server A to server B (logged to A), it works. But it doesn't work when I'm doing the same thing from B to A (logged to B) : I get an error message "permission denied" and scp doesn't ask me for password (although the password authentication is enabled)
Here is the command I use (logged on server B) :
scp -P 222 -vvv ~/backup/file user@serverA:/home/user/backup
And here are the last lines of the output :
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: password
debug3: start over, passed a different list password
debug3: preferred publickey,keyboard-interactive
debug1: No more authentication methods to try.
user@serverA: Permission denied (password).
Why doesn't scp ask me for password, whereas "password" is enabled (as it is written in the 2nd "debug1" line) ?
Thank you.
ssh scp
New contributor
I'm trying to copy files from one server to another with scp.
On both servers, I configured ssh port to 222. sshd_config for both servers is exactly the same (no RootLogin, PasswordAuthentication enabled)
For many reasons too long to explain here, I can't use key authentication.
When I use scp to copy from server A to server B (logged to A), it works. But it doesn't work when I'm doing the same thing from B to A (logged to B) : I get an error message "permission denied" and scp doesn't ask me for password (although the password authentication is enabled)
Here is the command I use (logged on server B) :
scp -P 222 -vvv ~/backup/file user@serverA:/home/user/backup
And here are the last lines of the output :
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: password
debug3: start over, passed a different list password
debug3: preferred publickey,keyboard-interactive
debug1: No more authentication methods to try.
user@serverA: Permission denied (password).
Why doesn't scp ask me for password, whereas "password" is enabled (as it is written in the 2nd "debug1" line) ?
Thank you.
ssh scp
ssh scp
New contributor
New contributor
New contributor
asked 4 hours ago
Harkonnen
1082
1082
New contributor
New contributor
You sure that PW auth foruser
is enabled? If I try this with PW and-vvv
I get this output:debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
â Lenniey
3 hours ago
add a comment |Â
You sure that PW auth foruser
is enabled? If I try this with PW and-vvv
I get this output:debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
â Lenniey
3 hours ago
You sure that PW auth for
user
is enabled? If I try this with PW and -vvv
I get this output: debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
â Lenniey
3 hours ago
You sure that PW auth for
user
is enabled? If I try this with PW and -vvv
I get this output: debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
â Lenniey
3 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
The best solution would be to ask the person who disabled publickey
authentication on that server why and then go fix that. Using publickey
authentication is more convenient and more secure than passwords.
The reason authentication fails for you is that no authentication method is enabled on both client and server. The authentication methods enabled on the server are:
debug1: Authentications that can continue: password
And the authentication methods enabled on the client are:
debug3: preferred publickey,keyboard-interactive
You can pass -o PreferredAuthentications=password
to scp
to only use password
authentication.
1
You're my man! "UsePasswordAuthentication" was set to "No" in ssh_config on server B. Corrected it to "yes", and it's ok. Thanks a lot.
â Harkonnen
2 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
The best solution would be to ask the person who disabled publickey
authentication on that server why and then go fix that. Using publickey
authentication is more convenient and more secure than passwords.
The reason authentication fails for you is that no authentication method is enabled on both client and server. The authentication methods enabled on the server are:
debug1: Authentications that can continue: password
And the authentication methods enabled on the client are:
debug3: preferred publickey,keyboard-interactive
You can pass -o PreferredAuthentications=password
to scp
to only use password
authentication.
1
You're my man! "UsePasswordAuthentication" was set to "No" in ssh_config on server B. Corrected it to "yes", and it's ok. Thanks a lot.
â Harkonnen
2 hours ago
add a comment |Â
up vote
4
down vote
accepted
The best solution would be to ask the person who disabled publickey
authentication on that server why and then go fix that. Using publickey
authentication is more convenient and more secure than passwords.
The reason authentication fails for you is that no authentication method is enabled on both client and server. The authentication methods enabled on the server are:
debug1: Authentications that can continue: password
And the authentication methods enabled on the client are:
debug3: preferred publickey,keyboard-interactive
You can pass -o PreferredAuthentications=password
to scp
to only use password
authentication.
1
You're my man! "UsePasswordAuthentication" was set to "No" in ssh_config on server B. Corrected it to "yes", and it's ok. Thanks a lot.
â Harkonnen
2 hours ago
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
The best solution would be to ask the person who disabled publickey
authentication on that server why and then go fix that. Using publickey
authentication is more convenient and more secure than passwords.
The reason authentication fails for you is that no authentication method is enabled on both client and server. The authentication methods enabled on the server are:
debug1: Authentications that can continue: password
And the authentication methods enabled on the client are:
debug3: preferred publickey,keyboard-interactive
You can pass -o PreferredAuthentications=password
to scp
to only use password
authentication.
The best solution would be to ask the person who disabled publickey
authentication on that server why and then go fix that. Using publickey
authentication is more convenient and more secure than passwords.
The reason authentication fails for you is that no authentication method is enabled on both client and server. The authentication methods enabled on the server are:
debug1: Authentications that can continue: password
And the authentication methods enabled on the client are:
debug3: preferred publickey,keyboard-interactive
You can pass -o PreferredAuthentications=password
to scp
to only use password
authentication.
answered 3 hours ago
kasperd
24.4k104593
24.4k104593
1
You're my man! "UsePasswordAuthentication" was set to "No" in ssh_config on server B. Corrected it to "yes", and it's ok. Thanks a lot.
â Harkonnen
2 hours ago
add a comment |Â
1
You're my man! "UsePasswordAuthentication" was set to "No" in ssh_config on server B. Corrected it to "yes", and it's ok. Thanks a lot.
â Harkonnen
2 hours ago
1
1
You're my man! "UsePasswordAuthentication" was set to "No" in ssh_config on server B. Corrected it to "yes", and it's ok. Thanks a lot.
â Harkonnen
2 hours ago
You're my man! "UsePasswordAuthentication" was set to "No" in ssh_config on server B. Corrected it to "yes", and it's ok. Thanks a lot.
â Harkonnen
2 hours ago
add a comment |Â
Harkonnen is a new contributor. Be nice, and check out our Code of Conduct.
Harkonnen is a new contributor. Be nice, and check out our Code of Conduct.
Harkonnen is a new contributor. Be nice, and check out our Code of Conduct.
Harkonnen 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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f931993%2fscp-with-password-authentication-only-doesnt-ask-me-for-password%23new-answer', 'question_page');
);
Post as a guest
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
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
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
You sure that PW auth for
user
is enabled? If I try this with PW and-vvv
I get this output:debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
â Lenniey
3 hours ago