LinuxQuestions.org

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

mafteha 11-12-2012 12:08 PM

Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
 
hi everyone ,:hattip:

i start to learn linux a few month ago :study:

i have one centos and one redhat linux on a routeur with ethernet cable
i want to make a ssh connection
with
ssh-keygen
ssh-copy-id
and i get : :eek:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
:scratch:
i check openssh server on
init.d httpd start
service httpd start
selinux permissive

nothing help :doh:

please do you have any idea :confused:

what going on ?

thanks

Joseph

TobiSGD 11-13-2012 06:12 AM

You are trying to copy your SSH key to the server. For this you have to authenticate with the password (since your key is not already there), but password based authentication seems to be disabled on the server.

mafteha 11-13-2012 07:33 PM

Hi Tobi

What do you mean by this ?

How could it be disable ?

I have the 2 server in my home and i know the password they worck ...

Disable ? So there is a command to enahle them?

Thanks fir your time

TobiSGD 11-14-2012 04:32 AM

Your server states this:
Quote:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
IIRC, if password based authentication would be allowed they would be the word password in this line. I might be wrong with this, but you can check by logging on to the server and have a look ath the file /etc/ssh/sshd_config and search for the line containing PasswordAuthentication. If it is set to yes or commented out (means beginning with a #-character) then password based authentication is allowed and this is not your problem.


All times are GMT -5. The time now is 01:06 AM.