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

Scott Moser smoser at canonical.com
Fri Feb 19 05:39:28 GMT 2010


hmm... shoudl also probably check that pubkey starts with 'ssh-' before
adding it, to avoid some "file not found" HTML getting written to
.ssh/authorized_keys.

   if url_encode "$i" && cururl=$(printf "$url" "${_RET}") &&
	   pubkey=$(wget --quiet -O- "$cururl") && [ -n "${pubkey}" ] &&
           [ "${pubkey#ssh-}" != "${pubkey}" ]; then

-- 
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 member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.



More information about the Ubuntu-server-bugs mailing list