Verification completed, I tested this version:

$ dpkg-query -W ssh-import-id
ssh-import-id   5.7-0ubuntu1.1

on my bionic install, I tested importing keys from an non-existing
username

$ ssh-import-id mwhudso
2018-05-20 22:17:21,328 ERROR Launchpad user not found. status_code=404 
user=mwhudso

and existing

$ ssh-import-id mwhudson
2018-05-20 22:17:24,662 INFO Already authorized ['2048', 
'SHA256:uB6hgZW/Ssz+uwrRo/mqnq5HN1wXzUGVbFKW9tt2WgU', 'canonical', '(RSA)']
2018-05-20 22:17:24,663 INFO [1] SSH keys [Authorized]


and even set up a container to that thought launchpad.net was served by another 
container to test the "other status code" code path (complete with self-signed 
certificate fiddling):

root@mitm-victim:~# ssh-import-id lp:mwhudson
2018-05-20 10:14:06,089 ERROR Requesting Launchpad keys failed. status_code=403 
user=mwhudson

And everything behaved as expected.

** Tags removed: verification-needed verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1770305

Title:
  ssh-import-id lp:$missing-user attempts to parse the (HTML) 404
  response as a series of ssh keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/ssh-import-id/+bug/1770305/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to