Re: ssh with RSA-key login problem

1999-08-03 Thread Mirek Kwasniak
On Tue, Aug 03, 1999 at 02:38:19AM +0200, Fredrik Jonsson wrote:
> [EMAIL PROTECTED] 
> <[EMAIL PROTECTED]> 99-08-03 01.39 wrote:
> 
> >Fredrik> ssh client complains that "Server does not allow RSA
> >Fredrik> authentication, or the public key for user "user1" was not
> >Fredrik> accepted. Reverting to password authentication.
> >
> >ssh has a verbose switch. Use it and see why it rejects the RSA key.
> 
> Hi,
> 
> I found it and it say:
> 
> debian: Trying RSA authentication with key '[EMAIL PROTECTED]'
> debian: Remote: Bad file modes for /home/user1
> debian: Server refused our key.
> 
> How do you fix "Bad file modes"?
> 

I think that sshd needs:

chmod -R og-rxw ~/.ssh
chmod og-w ~

Mirek


Re: ssh with RSA-key login problem

1999-08-03 Thread Fredrik Jonsson
[EMAIL PROTECTED]
<[EMAIL PROTECTED]> 99-08-03 01.39 wrote:

>Fredrik> ssh client complains that "Server does not allow RSA
>Fredrik> authentication, or the public key for user "user1" was not
>Fredrik> accepted. Reverting to password authentication.
>
>ssh has a verbose switch. Use it and see why it rejects the RSA key.

Hi,

I found it and it say:

debian: Trying RSA authentication with key '[EMAIL PROTECTED]'
debian: Remote: Bad file modes for /home/user1
debian: Server refused our key.

How do you fix "Bad file modes"?

Regards,
Fredrik Jonsson

--
A mind is like a parachute. It doesn't work if it's not open.
Phone: (Int. +46) 063-12 54 61/070-628 71 20
Address: Box 31, S-831 21 Östersund, Sweden
Web site: 


Re: ssh with RSA-key login problem

1999-08-02 Thread Martin Bialasinski

* "Fredrik" == Fredrik Jonsson <[EMAIL PROTECTED]> wrote:

Fredrik> ssh client complains that "Server does not allow RSA
Fredrik> authentication, or the public key for user "user1" was not
Fredrik> accepted. Reverting to password authentication.

ssh has a verbose switch. Use it and see why it rejects the RSA key.

Ciao,
Martin


Re: ssh with RSA-key login problem

1999-08-02 Thread Fredrik Jonsson
Nathan E Norman <[EMAIL PROTECTED]> 99-08-01 22.55 wrote>

>>root login works without a problem but when I try to login as user1 my
>>ssh client complains that "Server does not allow RSA authentication, or
>>the public key for user "user1" was not accepted. Reverting to password
>>authentication."
>>
>>What is wrong?
>
>.ssh/authorized_keys is group writable, and that tends to freak out SSH.
>
>`cd; chmod -R g-w .ssh/*' should help.

Hi,

I tried this but it made no difference. Anything else I can try?

TIA

Regards,
Fredrik Jonsson

--
A mind is like a parachute. It doesn't work if it's not open.
Phone: (Int. +46) 063-12 54 61/070-628 71 20
Address: Box 31, S-831 21 Östersund, Sweden
Web site: 


Re: ssh with RSA-key login problem

1999-08-01 Thread Nathan E Norman
On Sun, 1 Aug 1999, Fredrik Jonsson wrote:

 : Hi,
 : 
 : I have setup sshd on my Debina system, genrated keys for root and user1 
 : with ssh-keygen and put the public key in the file .ssh/authorized_keys. 
 : I have moved the private keys to my Mac where I run a ssh client 
 : (niftytelnet-1.1-ssh-r3). 
 : 
 : root login works without a problem but when I try to login as user1 my 
 : ssh client complains that "Server does not allow RSA authentication, or 
 : the public key for user "user1" was not accepted. Reverting to password 
 : authentication.
 : 
 : What is wrong?
 : 
 : Debian:/home/user1/.ssh# ls -la
 : total 6
 : drwxr-sr-x   2 user1 user1 1024 Aug  1 15:33 .
 : drwxrwsr-x  10 user1 user1 1024 Aug  1 15:31 ..
 : -rw-rw-r--   1 user1 user1  327 Aug  1 15:33 authorized_keys
 : -rw---   1 user1 user1  523 Aug  1 15:32 identity
 : -rw-rw-r--   1 user1 user1  327 Aug  1 15:32 identity.pub
 : -rw---   1 user1 user1  512 Aug  1 15:31 random_seed

.ssh/authorized_keys is group writable, and that tends to freak out SSH.

`cd; chmod -R g-w .ssh/*' should help.

--
Nathan Norman
MidcoNet  410 South Phillips Avenue  Sioux Falls, SD
mailto:[EMAIL PROTECTED]   http://www.midco.net
finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9)



ssh with RSA-key login problem

1999-08-01 Thread Fredrik Jonsson
Hi,

I have setup sshd on my Debina system, genrated keys for root and user1
with ssh-keygen and put the public key in the file .ssh/authorized_keys.
I have moved the private keys to my Mac where I run a ssh client
(niftytelnet-1.1-ssh-r3).

root login works without a problem but when I try to login as user1 my
ssh client complains that "Server does not allow RSA authentication, or
the public key for user "user1" was not accepted. Reverting to password
authentication.

What is wrong?

Debian:/home/user1/.ssh# ls -la
total 6
drwxr-sr-x   2 user1 user1 1024 Aug  1 15:33 .
drwxrwsr-x  10 user1 user1 1024 Aug  1 15:31 ..
-rw-rw-r--   1 user1 user1  327 Aug  1 15:33 authorized_keys
-rw---   1 user1 user1  523 Aug  1 15:32 identity
-rw-rw-r--   1 user1 user1  327 Aug  1 15:32 identity.pub
-rw---   1 user1 user1  512 Aug  1 15:31 random_seed

Regards,
Fredrik Jonsson

--
A mind is like a parachute. It doesn't work if it's not open.
Phone: (Int. +46) 063-12 54 61/070-628 71 20
Address: Box 31, S-831 21 Östersund, Sweden
Web site: