I'd like to set ssh_config so after just typing ssh my_hostname
i end up in specific folder. Just like I would type cd /folder/another_one/much_much_deeper/
.
How can i achieve that?
EDIT. It's have been marked as duplicate of "How to ssh into dir..." yet it is not my question.
I know i can execute any commands by tailing them to ssh
command.
My question is about /ssh_config
file not the command.
man ssh_config
. The closest is LocalCommand but it cannot be used for interactive command. – lgeorget Mar 29 '17 at 14:54ssh_config
? There are probably better places to configure the starting directory, and it would be helpful to understand why there is this particular restriction on a possible solution. – Chris Davies Mar 29 '17 at 20:31ssh name
and got used to it. It a few cases now i need to go to a very deep dir every single time. – Kazz Mar 30 '17 at 12:01ssh_config
" does not make this a duplicate of "do it in Bash". "You can't do that" is a perfectly valid answer. – Franklin Yu Oct 25 '17 at 18:54