[mdlug] Execute a command on a host after ssh

Jim Broughton spjamesb at gmail.com
Sun Aug 26 19:53:08 EDT 2012


After logon sshd executes a file calle ~/.ssh/rc. Try placing it there.

Jim


On 08/11/2012 02:44 PM, R KANNAN wrote:
> Hi,
>
> I want to execute a command (more precisely change to a directory) after
> sshing into a machine. The directory location is dynamic and is to be
> passed from a script. I could not find any way of doing this from the man
> pages for 'ssh'.
>
> Any suggestions on how this can be achieved.
>
> Thanks for any help
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
> .
>



More information about the mdlug mailing list