The command echo "hostname" | ssh myserv returns the hostname, but echo "users" | ssh myserv does not return anything?
When I ssh on the server then run the command users, it returns my user name (since I'm connected on it :-' ).
|
The command When I ssh on the server then run the command | ||||
|
feedback
|
|
Compare also | |||
|
feedback
|
|
I get an error when I attempt this. Some programs require a tty. Also keep in mind that who, and users are a special case, they are looking specifically at login sessions.
See: man sshd_config
man users
| ||||
|
feedback
|