Remotely invoking commands via ssh 

Synopsis 

if

ssh host /bin/true

prints anything then you need to fix your dot-files.

Solution / Conclusion 

wrap

around .bash_profile & .bashrc

Trying History 

Adding the code:

will only cause "lost connection" because they are being sourced by the login service.