tags:

views:

20

answers:

0

I have a bunch of remote servers that I regularly connect to via ssh; which I've setup in my ~/.ssh/config file. I was wondering if it was possible to specify a remote path to cd to when I connect to some of these servers?

For example, I may have something like this in my config file:

Host testbox
HostName 192.123.456.789
User root

And when I ssh in to testbox, I'd like to also cd to /var/www/apps/myapp.

I've had a look around but cannot see an option that would do that via the .ssh/config file.

Cheers, Diego