Pixie Blog (Tag: ssh)

SSH Directly Into A Remote Directory

Ever wanted to ssh directly into a directory other than /home/user? Here is a simple way.

ssh user@<domain or IP address> -t 'cd /path/to/folder ; bash'

You can use dash or any other shell.
By Brian