[Bug 1661745] Re: ssh-keyscan does not exit with non-zero return code on error
Colin Watson
cjwatson at canonical.com
Wed Jun 5 08:59:08 UTC 2019
** Bug watch added: Debian Bug tracker #374980
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=374980
** Also affects: openssh (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=374980
Importance: Unknown
Status: Unknown
** Bug watch added: OpenSSH Portable Bugzilla #2903
https://bugzilla.mindrot.org/show_bug.cgi?id=2903
** Also affects: openssh via
https://bugzilla.mindrot.org/show_bug.cgi?id=2903
Importance: Unknown
Status: Unknown
--
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 portable OpenSSH:
Unknown
Status in openssh package in Ubuntu:
New
Status in openssh package in Debian:
Unknown
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/openssh/+bug/1661745/+subscriptions
More information about the foundations-bugs
mailing list