Re: ssh and .rhosts or .shosts

From: Robert Lawhead (news0000.5.unixguru_at_spamgourmet.com)
Date: 04/19/05


Date: Tue, 19 Apr 2005 11:42:08 -0700

Dave Uhring wrote:
> On Tue, 19 Apr 2005 16:19:00 +0100, Richard Skelton wrote:
>
>
>># cat id_rsa.pub > $HOME/.ssh/authorized_keys
>
>
> Ummmm, I think you mean
>
> $ scp id_rsa.pub server:$HOME/.ssh/authorized_keys
>
Interesting... I've always used .ssh/authorized_keys2 for ssh2
keys like rsa and dsa, and thought that .ssh/authorized_keys was
only for rsa1 keys. However the ssh man page references
.ssh/authorized_keys for rsa and dsa keys; YET trussing sshd for
an ssh2 connection I see indeed that it is .ssh/authorized_keys2
that is checked. Moreover, if sshd is only serving protocol 2
and .ssh/authorized_keys2 is absent and .ssh/authorized_keys
includes the ssh2 keys, public key authentication fails. This
leads me to believe that the man page is confusing at best.
I'd suggest using only ssh2 & putting your keys in ssh/authorized_keys2.
None of this matters though for HostBasedAuthentication. What
matters there is that the respective hosts' (not users) public
keys are known to the respective hosts
(usually in /etc/ssh/ssh_known_hosts(2)).

- Bob



Relevant Pages

  • Re: SSH keys: RSA vs DSA
    ... >> Ssh protocol version 2 can use RSA as well as DSA keys. ... > DSA is an old and fairly weak encryption, ...
    (comp.os.linux.security)
  • Re: ssh / scp / batch mode
    ... I thought most places used DSA, ... by (RSA1, RSA, DSA) ... Here, ssh checks for RSA keys, DSA ... and offers the DSA public key to the server. ...
    (comp.os.linux.misc)
  • Re: Multiple keys in .ssh/authorized_keys file?
    ... It's not necessary but may be useful depending on your configuration. ... provided you have your ssh2 private keys on the nodes you expect to ... DSA is mandatory in the spec while RSA is recommended. ...
    (comp.security.ssh)
  • Re: ssh2 hostkeys what directory?
    ... so that ssh connection doesn't complain about changed ... Why do I need to have ssh2 directories under SYS$SPECIFIC ... So what program places the keys under SYS$SPECIFIC? ... Anton Shterenlikht ...
    (comp.os.vms)
  • Re: Why does openssh protocol default to 2?
    ... > consider that to be harmless compared to the possibility to collect keys ... > I mean I just checked some University systems running ssh2 and ssh1 and I ... attacker may write to .ssh/authorized_keys*. ...
    (FreeBSD-Security)