LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ssh randomly not accepting my private key (https://www.linuxquestions.org/questions/linux-server-73/ssh-randomly-not-accepting-my-private-key-572155/)

reeseslover531 07-25-2007 08:50 AM

ssh randomly not accepting my private key
 
so I have been using ssh on the server for quite some time. I have disabled password authentication and only use key based authentication. Now I have been using my key on my computer for months now. Just last night though I try to connect and it says
Code:

Ubuntu 6.10
Permission denied (publickey).

I haven't changed anything at all. At least, I can't think of anything I changed. I was playing with trying to install rtorstat. which required a little bit of playing with apt, but I never touched ssh stuff. What could be the problem?

reeseslover531 07-25-2007 09:30 AM

another thing I did was I made the permissions 777 on my home folder, but then I went in and changed the permissions back to 600 on the authorized_keys file.

AlucardZero 07-25-2007 09:49 AM

Change id_rsa's permissions back to 600

hardly 06-01-2010 01:57 PM

Way too much of this around.
 
No follow up. No resolution.

AlucardZero 06-01-2010 02:08 PM

thanks for your contribution to the two year old thread

hardly 06-05-2010 12:28 AM

I thought the point of searching before creating a new thread is to find answers and not ask redundant questions. But the answers aren't there.
Pardon me, sir. I have been dealing with a similar issue, and came here for an answer. There were suggestions, but no definitive answer. And this is something that I notice a lot.

anomie 06-06-2010 06:40 PM

Quote:

Originally Posted by reeseslover531
another thing I did was I made the permissions 777 on my home folder, but then I went in and changed the permissions back to 600 on the authorized_keys file.

When StrictModes are enabled for sshd_config (which they are by default), this action will break Pubkey Authentication, period. The user's home directory should be writable only by that user.

IOW:
Code:

$ chmod -R go-w ~


All times are GMT -5. The time now is 06:44 PM.