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 Last updated: 1 November 2012, 20:49

Comments

Gravatar Image #1 appliances repair 2230 days ago.

Regards for sharing the information with us on www.pixie.co.ke.

Comments now closed.