You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by "McRoy, Jeffrey (GE Healthcare)" <Je...@ge.com> on 2017/10/02 20:46:11 UTC

Automatic execution of commands in Telnet/SSH

Hi Everyone,

 

Has anyone experimented with automatically executing a command on the remote system directly after logging in using the Telnet or SSH protocol plugins?

 

 

Thanks & Regards,

Jeff

 


Re: Automatic execution of commands in Telnet/SSH

Posted by Nick Couchman <vn...@apache.org>.
Jeff,
Guacamole does not work any different in this regard than logging into the
SSH or Telnet system with a terminal emulator.  So, you can certainly set a
command to run at login, which will be executed in the context of the
user's login shell and environment, but there's no special way that
Guacamole has to inject commands into the login process that either bypass
the user's login shell or execute something just because it's coming from
Guacamole.

There are ways to accomplish this - like setting the SSH session startup
command to a particular shell script that runs and then drops the user into
a shell.  But, again, this is exactly the same process you'd use if you
wanted to do this for someone using ssh or telnet on a command line.

-Nick

On Mon, Oct 2, 2017 at 4:46 PM, McRoy, Jeffrey (GE Healthcare) <
Jeffrey.McRoy@ge.com> wrote:

> Hi Everyone,
>
>
>
> Has anyone experimented with automatically executing a command on the
> remote system directly after logging in using the Telnet or SSH protocol
> plugins?
>
>
>
>
>
> Thanks & Regards,
>
> Jeff
>
>
>