Set current working directory on ssh
Invoke $SHELL
instead.
ssh -t user@server 'cd /home/some/dir ; exec "$SHELL"'
You can do this like so...
ssh -t user@server "cd /home/some/dir ; bash"
Where bash
is your desired shell.
Invoke $SHELL
instead.
ssh -t user@server 'cd /home/some/dir ; exec "$SHELL"'
You can do this like so...
ssh -t user@server "cd /home/some/dir ; bash"
Where bash
is your desired shell.