Home » Questions » Computers [ Ask a new question ]

Bypass ~/.profile on remote login to a linux server

Bypass ~/.profile on remote login to a linux server

Is there a way to bypass or prevent the execution of ~/.profile when logging into a remote Linux server using either ssh or putty?

Asked by: Guest | Views: 295
Total answers/comments: 2
Guest [Entry]

"For bash:

$ ssh hostname ""bash --noprofile"""
Guest [Entry]

"If your target machine is in a bash shell:

user@host:/$ ssh hostname ""bash --noprofile""

Alternatively, if there's another profile you wish to use

user@host:/$ ssh hostname ""bash --noprofile; source ~/.other_profile"""