Bug#259865: ssh: exit status of the ssh client is different from what's described in the man page
Package: ssh
Version: 1:3.4p1-1.woody.3
Severity: normal
| florz@florz:~$ ssh -p222 rain ; echo $?
| ssh: connect to address 192.168.0.1 port 222: Connection refused
| 1
However, man ssh says:
| ssh exits with the exit status of the remote command or with 255 if
| an error occurred.
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux florz 2.4.24 #3 Fri Feb 13 12:06:53 CET 2004 i686
Locale: LANG=C, LC_CTYPE=de_DE
Versions of packages ssh depends on:
ii adduser 3.47 Add and remove users and groups
ii debconf 1.0.32 Debian configuration management sy
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
ii libpam-modules 0.72-35 Pluggable Authentication Modules f
ii libpam0g 0.72-35 Pluggable Authentication Modules l
ii libssl0.9.6 0.9.6c-2.woody.6 SSL shared libraries
ii libwrap0 7.6-9 Wietse Venema's TCP wrappers libra
ii zlib1g 1:1.1.4-1.0woody0 compression library - runtime
Reply to: