RE: ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ivo Mencke wrote:
> Hello folks,
> 
> I have a problem on redhat9 with ssh. With the default install I dont
> seem to be able to manage key based authentication.
> 
> ie: i copy the id_rsa.pub to the remote redhat9 host and
> rename it into
> the same users home directory/.ssh/authorized_keys
> 
> so i am coming from redhat 7.2 to redhat 9.
> 
> This works perfectly for a remote redhat 7.2 (a lot of our older boxes
> here) and under freebsd. I can login with no password using the keys.
> 
> am in missing something in sshd_config? because i cant see it.
> 
> thanks,
> 
> ivo
> 
> 
> The output is below:
> 
> [sc@sc-linuxdev sc]$ ssh sc-rtapp1 -vv

[snip]

> debug1: next auth method to try is publickey
> debug1: try privkey: /home/sc/.ssh/identity
> debug1: try pubkey: /home/sc/.ssh/id_rsa
> debug2: we sent a publickey packet, wait for reply
> debug1: authentications that can continue:
> publickey,password,keyboard-interactive
> debug1: try pubkey: /home/sc/.ssh/id_dsa
> debug2: we sent a publickey packet, wait for reply
> debug1: authentications that can continue:


For the most part, what I snipped from above looks similar to what I see at
this end. Until here...

debug1: next auth method to try is publickey
debug1: userauth_pubkey_agent: testing agent key /home/scowles/.ssh/id_dsa
debug2: we sent a publickey packet, wait for reply
debug1: input_userauth_pk_ok: pkalg ssh-dss blen 1202 lastkey 0x8091738 hint
-1
debug2: input_userauth_pk_ok: fp
0e:ec:44:23:63:2c:07:3c:9c:2d:dd:42:37:ed:a9:20
debug1: ssh-userauth2 successful: method publickey
debug1: channel 0: new [client-session]

Are you sure the permissions on your .ssh directory and the files beneath
are correct? EX:

[scowles@voyager .ssh]$ pwd
/home/scowles/.ssh
[scowles@voyager .ssh]$ ls -la
total 56
drwx------    2 scowles  scowles      4096 Mar  9 18:05 .
drwx------   66 scowles  scowles      4096 Mar  9 19:03 ..
-rw-------    1 scowles  scowles     13133 Nov 11 17:24 authorized_keys
-rw-r--r--    1 scowles  scowles       911 Jan  6 14:27 known_hosts

Another possibility could be the key from your RH7.2 system is incompatible
with the RH9 version of ssh. Try and create a new key and if that works.

Steve Cowles


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux