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.ssh_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.ssh_config
" does not make this a duplicate of "do it in Bash". "You can't do that" is a perfectly valid answer.