Re: ssh authentication error

2010-11-12 Thread Robert Huff

Chris Brennan writes:

>  > Check perms on /home/user/.ssh/authorized_keys
>  > chmod 640 or 600, not 644
>  
>  That's the permissions of my authorized_keys, I believe that's 0600, some
>  systems require a much more restrictive 0400 octal.
>  
>  -rwxr--r--   1 chris  chris   622B Jun 28 21:36 authorized_keys

Um, I think that's 744.
Whether the appropriate code cares 


Robert Huff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh authentication error

2010-11-12 Thread Chris Brennan
On Fri, Nov 12, 2010 at 5:58 PM, xSAPPYx  wrote:

> On Thu, Nov 11, 2010 at 10:06, Jerrin  wrote:
> > Hi,
> >
> >  On a mac system i generated the key using ssh-keygen -t dsa and copied
> > .ssh/id_dsa.pub to /home/user/.ssh/authorized_keys on a Freebsd server,
> but
> > it prompts for the password
>
> Check perms on /home/user/.ssh/authorized_keys
> chmod 640 or 600, not 644
>
> If that doesn't work, try to ssh with a -v or -vv, that might give you
> more of a clue
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>

That's the permissions of my authorized_keys, I believe that's 0600, some
systems require a much more restrictive 0400 octal.

-rwxr--r--   1 chris  chris   622B Jun 28 21:36 authorized_keys

Did you know...

If you play a Windows 2000 CD backwards, you hear satanic messages,
but what's worse is when you play it forward
  ...it installs Windows 2000

   -- Alfred Perlstein on chat at freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh authentication error

2010-11-12 Thread xSAPPYx
On Thu, Nov 11, 2010 at 10:06, Jerrin  wrote:
> Hi,
>
>  On a mac system i generated the key using ssh-keygen -t dsa and copied
> .ssh/id_dsa.pub to /home/user/.ssh/authorized_keys on a Freebsd server, but
> it prompts for the password

Check perms on /home/user/.ssh/authorized_keys
chmod 640 or 600, not 644

If that doesn't work, try to ssh with a -v or -vv, that might give you
more of a clue
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


ssh authentication error

2010-11-11 Thread Jerrin
Hi,

 On a mac system i generated the key using ssh-keygen -t dsa and copied
.ssh/id_dsa.pub to /home/user/.ssh/authorized_keys on a Freebsd server, but
it prompts for the password
 There's no passphrase for the key. Key generated from the linux or Freebsd
machine works fine on the server.
 it shows this message in the auth.log
 sshd[5752]: error: PAM: authentication error for username  from host

Thank you
Rihaz
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"