Quarkstrudel im Kopf

September 25, 2014 / Martin

Shift Your Home Directory On Login With SSH

Recently, I had the problem that I wanted to have my home directory somewhere else on a machine but did not have the necessary credentials to change it. Here I describe a little trick to achieve that:

ssh -t user@somehost 'cd new_home_folder ; export HOME=absolute_new_home ; bash --login'

Just copy all the stuff that you would expect into the new folder and you are set.