Same pubkey allows access on one user, but not another
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
So I have a centos 7 server with 2 users.
User1 has the ~/.ssh/authorized_keys
file with proper permissions and with externaluser's public key in it.
User2 has the ~/.ssh/authorized_keys
file with proper permissions and with the same externaluser's public key in it.
Externaluser can ssh to User1 with no problems, however, he gets Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
error when trying to ssh to User2.
Why does this happen? It's literally the same public key, properly pasted into the authorized_keys
file of each user, using the same method.
centos ssh
add a comment |Â
up vote
0
down vote
favorite
So I have a centos 7 server with 2 users.
User1 has the ~/.ssh/authorized_keys
file with proper permissions and with externaluser's public key in it.
User2 has the ~/.ssh/authorized_keys
file with proper permissions and with the same externaluser's public key in it.
Externaluser can ssh to User1 with no problems, however, he gets Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
error when trying to ssh to User2.
Why does this happen? It's literally the same public key, properly pasted into the authorized_keys
file of each user, using the same method.
centos ssh
Please, tryssh -v
for more detailed information about what's happening and add it to your question.
â francescop21
9 hours ago
Check the owner and permissions on.ssh
and onauthorized_keys
.
â RalfFriedl
8 hours ago
Please check unix.stackexchange.com/questions/36540/⦠and show the results.
â Jeff Schaller
6 hours ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So I have a centos 7 server with 2 users.
User1 has the ~/.ssh/authorized_keys
file with proper permissions and with externaluser's public key in it.
User2 has the ~/.ssh/authorized_keys
file with proper permissions and with the same externaluser's public key in it.
Externaluser can ssh to User1 with no problems, however, he gets Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
error when trying to ssh to User2.
Why does this happen? It's literally the same public key, properly pasted into the authorized_keys
file of each user, using the same method.
centos ssh
So I have a centos 7 server with 2 users.
User1 has the ~/.ssh/authorized_keys
file with proper permissions and with externaluser's public key in it.
User2 has the ~/.ssh/authorized_keys
file with proper permissions and with the same externaluser's public key in it.
Externaluser can ssh to User1 with no problems, however, he gets Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
error when trying to ssh to User2.
Why does this happen? It's literally the same public key, properly pasted into the authorized_keys
file of each user, using the same method.
centos ssh
centos ssh
asked 9 hours ago
iamAguest
985
985
Please, tryssh -v
for more detailed information about what's happening and add it to your question.
â francescop21
9 hours ago
Check the owner and permissions on.ssh
and onauthorized_keys
.
â RalfFriedl
8 hours ago
Please check unix.stackexchange.com/questions/36540/⦠and show the results.
â Jeff Schaller
6 hours ago
add a comment |Â
Please, tryssh -v
for more detailed information about what's happening and add it to your question.
â francescop21
9 hours ago
Check the owner and permissions on.ssh
and onauthorized_keys
.
â RalfFriedl
8 hours ago
Please check unix.stackexchange.com/questions/36540/⦠and show the results.
â Jeff Schaller
6 hours ago
Please, try
ssh -v
for more detailed information about what's happening and add it to your question.â francescop21
9 hours ago
Please, try
ssh -v
for more detailed information about what's happening and add it to your question.â francescop21
9 hours ago
Check the owner and permissions on
.ssh
and on authorized_keys
.â RalfFriedl
8 hours ago
Check the owner and permissions on
.ssh
and on authorized_keys
.â RalfFriedl
8 hours ago
Please check unix.stackexchange.com/questions/36540/⦠and show the results.
â Jeff Schaller
6 hours ago
Please check unix.stackexchange.com/questions/36540/⦠and show the results.
â Jeff Schaller
6 hours ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2funix.stackexchange.com%2fquestions%2f474281%2fsame-pubkey-allows-access-on-one-user-but-not-another%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
Please, try
ssh -v
for more detailed information about what's happening and add it to your question.â francescop21
9 hours ago
Check the owner and permissions on
.ssh
and onauthorized_keys
.â RalfFriedl
8 hours ago
Please check unix.stackexchange.com/questions/36540/⦠and show the results.
â Jeff Schaller
6 hours ago