Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Whether .bashrc is executed when logging in over SSH depends on a build-time option (SSH_SOURCE_BASHRC). For example Ubuntu turns it on (so this will work for Smith if they've kept bash as their shell as per the Ubuntu default), but FreeBSD doesn't. Commented Sep 6, 2016 at 9:21
  • Do you know if the --norc and --withrc= arguments to ssh can be used to 'ignore' that compilation argument (allowing a semi portable approach) or if they are generally unsupported / ignored as the gnu documentation seems to indicate? Not directly related to question; mostly curious. Commented Sep 6, 2016 at 9:54
  • Over SSH, you don't get a chance to pass arguments to the login shell. Commented Sep 6, 2016 at 10:06
  • What is executed or not upon an ssh login could also be modified via PAM settings. Commented Sep 6, 2016 at 15:43