How To Run An SSH Session With Full Login Shell

Posted by Weston Ganger on February 07, 2016

I dont like having to call exec bash or whatever after ssh’ing into my machine just to get all my aliases and settings loaded.

Just add the -t option to your ssh session

ssh -t 'exec bash'

I created an alias for my ssh

alias laptop-ssh="ssh -t 'exec bash'"

Related External Links:

Posted in Linux and Tagged with ssh 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts