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.
Best Answer
There wasn't a way to do that, until OpenSSH 7.6. From manual:
So now you can have
It was introduced in this commit.