bugzilla-daemon at bugzilla.mindrot.org
2008-Aug-05 17:04 UTC
[Bug 1500] New: enhance ssh-copy-id to work when login dir on server is not /home/user
https://bugzilla.mindrot.org/show_bug.cgi?id=1500 Summary: enhance ssh-copy-id to work when login dir on server is not /home/user Classification: Unclassified Product: Portable OpenSSH Version: 5.0p1 Platform: All OS/Version: Linux Status: NEW Severity: enhancement Priority: P2 Component: Miscellaneous AssignedTo: unassigned-bugs at mindrot.org ReportedBy: timothy at gelter.com Created an attachment (id=1556) --> (http://bugzilla.mindrot.org/attachment.cgi?id=1556) patchfile which fixes the assumption that after ssh'ing into a machine, the cwd is ~/ ssh-copy-id currently assums that when copying over the key, it is sufficient to check for a .ssh dir at the current location (normally the user's home directory) and then proceed to copy the public key to the .ssh/authorized_keys file, creating the .ssh directory if needed. Under some circumstances, the current working directory of the shell after logging into the server over ssh will *NOT* be the user's home directory, so it can't be assumed that we're always operating in the user's home directory. As an example, let's say that there is a server that I log in to only to work on documentation. Since every time I log in to that machine, I'll be working in /home/me/documentation, I decide to stick a new line in my ~/.bashrc that simply does a "cd ~/documentation" after initializing aliases and everything else. In this case, when the ssh-copy-id script is run, a new directory ~/documentation/.ssh is created, and my public key is copied to a new file called ~/documentation/.ssh/authorized_keys. Now, as expected, when I try to ssh into the machine, key-based authentication is never attempted and I'm forced to manually move my key over from ~/documentation/.ssh/authorized_keys to ~/.ssh/authorized_keys which defeats the purpose of using ssh-copy-id. Attached is a patch which fixes this issue. Thanks! -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2009-Jan-14 01:12 UTC
[Bug 1500] enhance ssh-copy-id to work when login dir on server is not /home/user
https://bugzilla.mindrot.org/show_bug.cgi?id=1500 timothy at gelter.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timothy at gelter.com -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Apr-26 00:48 UTC
[Bug 1500] enhance ssh-copy-id to work when login dir on server is not /home/user
https://bugzilla.mindrot.org/show_bug.cgi?id=1500 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org Blocks| |1708 Severity|enhancement |minor -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Jun-18 01:09 UTC
[Bug 1500] enhance ssh-copy-id to work when login dir on server is not /home/user
https://bugzilla.mindrot.org/show_bug.cgi?id=1500 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Damien Miller <djm at mindrot.org> --- patch applied, will be in openssh-5.6 -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Jan-24 01:33 UTC
[Bug 1500] enhance ssh-copy-id to work when login dir on server is not /home/user
https://bugzilla.mindrot.org/show_bug.cgi?id=1500 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Damien Miller <djm at mindrot.org> 2011-01-24 12:33:44 EST --- Move resolved bugs to CLOSED after 5.7 release -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
Reasonably Related Threads
- [Bug 2349] New: ssh-copy-id transfer keys into current directory instead of home folder
- [Bug 2128] New: ssh-copy-id doesn't check if a public key already exists in a remote servers ~/.ssh/authorized_keys file
- [Bug 3201] New: provide an option to use sftp instead of ssh 'exec sh -c …' for installing ssh-keys via ssh-copy-id
- [Bug 2886] New: ssh-copy-id appears to hang indefinitely when ssh multiplexing is enabled, and it permits passwordless login
- ssh with shared home dir