LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-25-2007, 08:50 AM   #1
reeseslover531
Member
 
Registered: Nov 2005
Distribution: Fedora Core 5
Posts: 64

Rep: Reputation: 15
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?
 
Old 07-25-2007, 09:30 AM   #2
reeseslover531
Member
 
Registered: Nov 2005
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
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.
 
Old 07-25-2007, 09:49 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Change id_rsa's permissions back to 600
 
Old 06-01-2010, 01:57 PM   #4
hardly
LQ Newbie
 
Registered: Jan 2009
Location: Tulsa, OK
Distribution: Fedora, Ubuntu
Posts: 18

Rep: Reputation: 0
Way too much of this around.

No follow up. No resolution.
 
Old 06-01-2010, 02:08 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
thanks for your contribution to the two year old thread
 
Old 06-05-2010, 12:28 AM   #6
hardly
LQ Newbie
 
Registered: Jan 2009
Location: Tulsa, OK
Distribution: Fedora, Ubuntu
Posts: 18

Rep: Reputation: 0
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.
 
Old 06-06-2010, 06:40 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

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

Last edited by anomie; 06-06-2010 at 06:41 PM.
 
  


Reply



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
need help with SSH private/public key taduser Linux - Security 2 04-02-2007 07:07 PM
SSH: Help needed adding private key thomsky Linux - Security 3 10-21-2006 05:04 PM
SSH public / private key authentication problems thronh Linux - Security 7 06-14-2006 11:21 AM
ssh randomly generated key Operations Linux - Security 1 06-10-2002 10:49 PM
ssh randomly generated key Operations *BSD 1 06-10-2002 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:30 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
Open Source Consulting | Domain Registration