LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2012, 03:42 AM   #1
Huaqing Wang
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
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
 
Old 06-27-2012, 07:51 PM   #2
tollingalong
Member
 
Registered: Nov 2011
Posts: 42

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amanda Backup Permission denied (publickey,gssapi-with-mic,password). error mcdown75 Linux - Software 6 07-10-2014 11:42 AM
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-inte ract MilanK Linux - Newbie 1 03-20-2012 03:44 AM
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) scman64 Linux - Newbie 1 12-13-2011 12:20 AM
[SOLVED] kerberos SSO: ssh not trying gssapi-with-mic doqc1 Linux - Software 1 08-22-2011 04:04 AM
Permission denied (publickey,password,keyboard-interactive). rockymaxsource Linux - Networking 3 04-27-2007 08:32 PM


All times are GMT -5. The time now is 05:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration