Same pubkey allows access on one user, but not another

The name of the pictureThe name of the pictureThe name of the pictureClash 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.










share|improve this question





















  • 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










  • Please check unix.stackexchange.com/questions/36540/… and show the results.
    – Jeff Schaller
    6 hours ago














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.










share|improve this question





















  • 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










  • Please check unix.stackexchange.com/questions/36540/… and show the results.
    – Jeff Schaller
    6 hours ago












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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 9 hours ago









iamAguest

985




985











  • 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










  • 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











  • 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, 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay