Skip to main content
2 of 2
fix grammar
Matthias Braun
  • 8.8k
  • 8
  • 51
  • 63

SSH parameter to ignore .bashrc script

I have a server which executes this line in .bashrc when it starts: /bin/watch ~/checker.bash. Which, as expected, watches that command upon server start.

I also have a client which logs into that machine, but I do not want the client's sessions to execute the same command from the .bashrc.

I have looked at AcceptEnv for passing env vars, though it requires configuration of the server, which I want to avoid.

I also don't want to have two different user accounts for different .bashrcs.

Is there another angle to approach this from?

ljs.dev
  • 2.1k
  • 4
  • 20
  • 32