9951 explained code solutions for 126 technologies


sshSwitch to a specific directory right on login


ssh -t [email protected] "cd /path/to/dir; bash --login"ctrl + c
-t

will allocate pseudo terminal = allow us to launch our own bash session

[email protected]

remote user and server address

cd /path/to/dir

switch current directory to the needed one

bash --login

launch bash session after switching to the directory