[Bug 1661745] Re: ssh-keyscan does not exit with non-zero return code on error

ChristianEhrhardt 1661745 at bugs.launchpad.net
Mon Feb 6 10:58:00 UTC 2017


Thank you for taking the time to report this bug and helping to make
Ubuntu better. I appreciate the quality of this bug report and I'm sure
it'll be helpful to others experiencing the same issue.

This sounds like an upstream bug to me. Please can you verify this by
building directly from the latest upstream source? If this can be
confirmed as an upstream bug, the best route to getting it fixed in
Ubuntu in this case would be to file an upstream bug if you're able to
do that. Otherwise, I'm not sure what we can do directly in Ubuntu to
fix the problem.

If you do end up filing an upstream bug, please link to it from here.
Thanks!

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

Title:
  ssh-keyscan does not exit with non-zero return code on error

Status in openssh package in Ubuntu:
  New

Bug description:
  On xenial, ssh-keyscan returns zero indicating success, when the
  command fails.

  root at cp1:~# lsb_release -d
  Description:	Ubuntu 16.04.1 LTS

  root at cp1:~# ssh-keyscan -H -t ssh-rsa bad-host
  getaddrinfo bad-host: Name or service not known
  root at cp1:~# echo $?
  0

  On trusty, the exit status is non-zero as expected.

  root at integration-deployer:/home/ubuntu# lsb_release -d
  Description:	Ubuntu 14.04.5 LTS

  root at integration-deployer:/home/ubuntu# ssh-keyscan -H -t ssh-rsa bad-host
  getaddrinfo bad-host: Name or service not known
  root at integration-deployer:/home/ubuntu# echo $?
  255

  This is a incompatibility between Ubuntu 14.04 and 16.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1661745/+subscriptions



More information about the foundations-bugs mailing list