Run a remote command using ssh config file

Posted by PeterJCLaw on Super User See other posts from Super User or by PeterJCLaw
Published on 2010-03-25T18:11:45Z Indexed on 2010/03/25 18:13 UTC
Read the original article Hit count: 191

Filed under:

I'd like to be able to setup a command to run on ssh login to a server, without needing to type it. Basically I'm looking for the ssh config file equivalent of:

ssh host command

so that all I need to type is:

ssh host

and the command gets run.

© Super User or respective owner

Related posts about ssh