Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 24974  / 3 Years ago, sat, september 25, 2021, 6:04:41

I want to ssh into my account, but I don't want the current version of my .profile login script to be executed. Is there a way to log in without running .profile?



(Disclaimer: I found a work-around which I posted below, but I wonder if there's a better answer)


More From » ssh

 Answers
3

You can run the followin command:



ssh -t user@host bash --noprofile


where -t option to ssh is to force tty allocation.


[#43267] Sunday, September 26, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arsleyeuth

Total Points: 72
Total Questions: 121
Total Answers: 112

Location: North Korea
Member since Mon, Oct 31, 2022
2 Years ago
;