[Bug 623] ssh, ssh-keygen and possibly others do not honour $HOME

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Aug 10 03:07:17 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=623

           Summary: ssh, ssh-keygen and possibly others do not honour $HOME
           Product: Portable OpenSSH
           Version: 3.6.1p2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: kalin at ThinRope.net


I had quite a time trying to figure out how to make openssh tools work on a
system with not unique uids... For different reasons I have a system with
several "root" accounts (uid 0).

Although in the man pages it is written:
    Normally each user wishing to use SSH with RSA or DSA authentication runs
    this once to create the authentication key in $HOME/.ssh/identity,
    $HOME/.ssh/id_dsa or $HOME/.ssh/id_rsa. Additionally, the system adminis-
    trator may use this to generate host keys, as seen in /etc/rc.
<above is from ssh-keygen>

$HOME is never used. Instead, the home from /etc/passwd [returned by
getpwuid(getuid))] is used in *TWO* places for ssh. I haven't cheked ssh-keygen,
as it is not so critical.

So, any specific reasons why this is so?

I know this is the easy way (no error checking,etc.), but it is not the good
way. At least update the documentation.

I hacked a very dirty patch, please have a look. It can be improved a lot, I
know, but for an hour I came with only that.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list