LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Server Refused Out Key (https://www.linuxquestions.org/questions/linux-newbie-8/server-refused-out-key-930717/)

ghandizzle8 02-22-2012 11:13 AM

Server Refused Out Key
 
Good Day,

Iam presently using fedora 8 64-bit which is provided by amazon.

I am usually able to ssh into my server using an ssh key and a username.

At this time...iam unable to ssh into the server. When i try, i get the error "Server Refused Our Key" The server is still up as i am still able to access my web applications.

Another wierd thing is that when i try to ssh into the server via ip directly (without using a ssh key) it prompts me for a username and password...


Any help would be greatly appreciated as i need to be able to ssh into my server.

Thanks in advance
Brian

uhelp 02-22-2012 11:56 AM

check the ~/.ssh/authorized_keys file
Make sure that the proper key is used and has the proper format
ssh-rsa <weirdCryptoChars> hostname

If that dosn't help check for access rights of ~/.ssh
should be 600

If it still doesn't work, remove key from ~/.ssh/authorized_keys and create a new one.

ghandizzle8 02-22-2012 12:26 PM

thanks for the response....the issue is that iam unable to access my server...its an amazon cloud server. hence the main access is through ssh...so iam unable to even check /ssh directory

unSpawn 02-23-2012 03:15 AM

Your answer is here. Read it and act on it.


All times are GMT -5. The time now is 01:50 PM.