Xforwarding question

Nils Kassube kassube at gmx.net
Fri Apr 12 08:15:42 UTC 2013

Linda wrote:
> Just thinking about future uses. Normally all of my commands
> are called via menus if they have to be called differently
> when accessed via ssh -X than when accessed directly from
> the server is there a way to know if a user has logged in
> via ssh so they can be given a different menu?

You can check if the variable "SSH_CONNECTION" is set.


More information about the ubuntu-users mailing list