I'm using Bash on both client and server. When running a command over SSH:
ssh <host> 'declare'
gives a list of shell variables.ssh <host> 'mount'
gives a list of mountpoints.
However, declare
is a Bash builtin, while mount
is an external command. How does SSH know which to run if there is a shell builtin and an external command with the same name on the server?
/etc/passwd
. If it's/usr/sbin/nologin
you can't log in.