[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-23 Thread Dustin Kirkland
Par- Can you name another public server where such keys are available? I scoured the web and couldn't find one. -- ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file https://bugs.launchpad.net/bugs/524226 You received this bug notification because you

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-23 Thread Launchpad Bug Tracker
** Branch linked: lp:~kirkland/ssh-import/trunk -- ssh-import-lp-id: retrieve a key from Launchpad and add to the authorized_keys file https://bugs.launchpad.net/bugs/524226 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-21 Thread Pär Andersson
I think a name like ssh-import-launchpad-id would be more appropriate for something this Launchpad specific. -- ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file https://bugs.launchpad.net/bugs/524226 You received this bug notification because you are a

[Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Thierry Carrez
Even small, that's a new feature, so it requires FFe and should probably not be accepted as a papercut (only bugfixes). -- ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file https://bugs.launchpad.net/bugs/524226 You received this bug notification because

[Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Thierry Carrez
Additional comment to my comment 6 above, just to make clear that the fact that it requires FFe and fails to meet papercuts criteria doesn't prevent this from being a good idea. I think it would be a very valuable feature for our cloud images, as long as we get the security issues around it

[Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Jamie Strandboge
While I can see the utility of this script in certain situations, I'm not sure it is generally useful enough to put in openssh, or even cloud- init. It really feels like it should be in its own package. Also, I think we can assume that someone will one day want to run this as root, since the idea

[Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
Colin- Thanks for the comment. I agree that such a script should undergo a *thorough* review before being accepted into our openssh-server package. I also see your point, that ssh-copy-id is doing it's work over ssh itself. In the default configuration, ssh-import-id works against

[Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
Kees- * May I ask for your opinion? * Do we want it to remain non-trivial to add public keys to authorized_keys? Is there a security reason for doing so? * Is this ssh-import-id utility just a bad idea? * Do you have security concerns about the key retrieval method? * Is SSL and/or

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Jamie Strandboge
I couldn't remember if wget would error out on an invalid certification, but reading the man page for wget, it seems that as long as wget is compiled with openssl, it will error out (good). As of Wget 1.10, the default is to verify the server's certificate against the recognized certificate

Re: [Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
On Fri, Feb 19, 2010 at 8:47 AM, Jamie Strandboge ja...@ubuntu.com wrote: While I can see the utility of this script in certain situations, I'm not sure it is generally useful enough to put in openssh, or even cloud- init. It really feels like it should be in its own package. Also, I think we

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Marc Deslauriers
Standard practice would be to display the ssh key's fingerprint and ask the user to validate it before importing it automatically. -- ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file https://bugs.launchpad.net/bugs/524226 You received this bug

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
Marc- I think that's true if you're receiving an arbitrary key from an untrusted source (such as the first time you log into a remote server). However, in this case, I think: a) You're communicating over SSL with a server and a valid certificate (hence, the server is authenticated and

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
Attaching updated version based on Jamie's excellent feedback. I believe I have addressed the concerns that he has raised so far. ** Attachment added: ssh-copy-id (kirkland's version) http://launchpadlibrarian.net/39410267/ssh-import-id -- ssh-import-id: retrieve a key from a public

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Marc Deslauriers
Dustin, Now that you've removed the ability to specify an arbitrary URL, I think that's a fair assumption. -- ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file https://bugs.launchpad.net/bugs/524226 You received this bug notification because you are a

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Jamie Strandboge
Dustin, Thanks for your work on this. I have a couple of small nits and a bug fix: 1. in url_encode(), error(), warn() and info() you use something like 'printf ERROR: $...@\n'. It would be better to use something like 'printf ERROR: %s\n $@' 2. env -i isn't doing what you want here. You

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
Jamie, Thanks again. (1) printf ... Got it, thanks. Fixed in new upload. (2) env ... Ah, I see. Also, fixed in new upload. (3) Got it, good catch. One more thing I found/fixed... The grep for existing keys wasn't working properly. So I fixed it with a unique sort on the file (to make

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
** Attachment removed: ssh-import-id (kirkland's version) http://launchpadlibrarian.net/39429267/ssh-import-id ** Attachment added: ssh-import-id (kirkland's version) http://launchpadlibrarian.net/39429418/ssh-import-id ** Attachment removed: ssh-import-id (kirkland's version)

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
** Attachment added: ssh-import-id (kirkland's version) http://launchpadlibrarian.net/39429482/ssh-import-id ** Attachment removed: ssh-import-id (kirkland's version) http://launchpadlibrarian.net/39429482/ssh-import-id -- ssh-import-id: retrieve a key from a public keyserver and add to

[Bug 524226] Re: ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-19 Thread Dustin Kirkland
** Attachment added: ssh-import-id (kirkland's version) http://launchpadlibrarian.net/39429538/ssh-import-id -- ssh-import-id: retrieve a key from a public keyserver and add to the authorized_keys file https://bugs.launchpad.net/bugs/524226 You received this bug notification because you are

[Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-18 Thread Dustin Kirkland
** Summary changed: - ssh-authorize - retrieve a key from a public keyserver and add to the authorized_keys file + ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file ** Description changed: ssh-copy-id is a great script for adding my public key to a

[Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-18 Thread Dustin Kirkland
** Changed in: openssh (Ubuntu) Assignee: Colin Watson (cjwatson) = (unassigned) ** Description changed: ssh-copy-id is a great script for adding my public key to a remote server. I have a script in my ~/bin called ssh-import-id that does something similar. It retrieves a key

[Bug 524226] Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

2010-02-18 Thread Scott Moser
attached is my improved version to this, more like a program than a shell script. ** Attachment added: improved (imo) version. http://launchpadlibrarian.net/39388856/ssh-import-id -- ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file