How To Run An SSH Session With Full Login Shell

Posted by Weston Ganger

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 192.168.1.77 -t 'exec bash'

I created an alias for my ssh


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


Related External Links:

Article Topic:Software Development - Linux

Date:February 07, 2016

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected