LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permission denied (publickey, gssapi-keyex,gssapi-with-mic,password) (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-publickey-gssapi-keyex-gssapi-with-mic-password-4175413607/)

Huaqing Wang 06-27-2012 03:42 AM

Permission denied (publickey, gssapi-keyex,gssapi-with-mic,password)
 
When I try to ssh to a Linux from Macbook using

ssh userID@hostname

I have following error:

Permission denied (publickey, gssapi-keyex,gssapi-with-mic,password)

Could anyone can help me to solve the problem?

Thanks

tollingalong 06-27-2012 07:51 PM

Few checks
 
Are you using user/pass or keys?

If using a user/pass
1) Make sure username exists on remote machine
2) Make sure user/password are correct.

If using keys
1) Make sure your local public key is in the authorized_keys file on the remote machine
2) Ensure your permissions are for the current user only in the home and .ssh directories (ie 700 or 644)
3) Ensure your sshd config allows key authentication

If you're loggin in as root make sure root login is allowed on the remote machine.


All times are GMT -5. The time now is 05:57 PM.