touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #124730
[Bug 1527162] Re: ssh-keygen ignores $HOME
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
I understand that shells generally expand ~ to $HOME, but I'm not sure
that automatically means the documentation is wrong, though I can see
how it could have misled you in this case. I'm also not sure that there
is consensus that changing $HOME should automatically change all program
behaviour, since as you point out nss (eg. getent) will still look up
/etc/passwd to find a different home directory. I'd expect that changing
one without changing the other would produce inconsistent results as you
have discovered.
In any case, that is just my opinion. I doubt we'd carry a patch in
Ubuntu to adjust this behaviour, so the best thing for you to do if you
want to make any progress on this is to report it to upstream and see
what they say. If you do, please link to your report here so others can
follow.
I'm marking this bug Won't Fix in Ubuntu because I don't think we should
carry a patch and I don't think it's likely to change any time soon, so
might as well set expectations correctly. But if it changes upstream or
in Debian, then Ubuntu will follow by default.
** Tags added: needs-upstream-report
** Changed in: openssh (Ubuntu)
Status: New => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1527162
Title:
ssh-keygen ignores $HOME
Status in openssh package in Ubuntu:
Won't Fix
Bug description:
The manual for ssh-keygen claims that by default it will create a key
in ~/.ssh/id_rsa
The convention used in /bin/sh (and other shells) is that
~/.ssh/id_rsa is basically "$HOME/.ssh/id_rsa". So changing $HOME
should change where ssh-keygen writes its key.
But it does not. ssh-keygen seems to use the directory extracted from
/etc/passwd. In this terminal session, I change the value of $HOME to
illustrate this:
$ HOME=/tmp sh
$ cd ~
$ pwd
/tmp
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/drj/.ssh/id_rsa): ^C
Versions etc:
$ lsb_release -rd
Description: Ubuntu 15.04
Release: 15.04
$ apt-cache policy openssh-client
openssh-client:
Installed: 1:6.7p1-5ubuntu1.3
Candidate: 1:6.7p1-5ubuntu1.3
Version table:
*** 1:6.7p1-5ubuntu1.3 0
500 http://gb.archive.ubuntu.com/ubuntu/ vivid-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ vivid-security/main amd64 Packages
100 /var/lib/dpkg/status
1:6.7p1-5ubuntu1 0
500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1527162/+subscriptions
References