Comment 5 for bug 524226

Revision history for this message
Scott Moser (smoser) wrote : Re: ssh-import-id - retrieve a key from a public keyserver and add to the authorized_keys file

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