ssh(1) is inaccurate

David Rabel rabel at
Wed Dec 6 21:51:01 AEDT 2017


the man page an docs of ssh client say
"If command is specified, it is executed on the remote host instead of a
login shell."

But afaik this is not quite accurate. The login shell is always started.
But if a command is specified it runs that command instead of just
opening an interactive setting.

So if a user has /dev/false as login shell, you cannot run a command on
that host via ssh, because it tries to run "/dev/false <command>" or
something like that.


David Rabel
Linux Consultant & Trainer
Tel.: +49-1511-5908566
Mail: rabel at

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg /
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the openssh-unix-dev mailing list