Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
4 votes
2 answers
3k views

Why some commands don't load user environment when executed with ssh? (while other do)

On a target machine (OS X El Capitan) I have brew in /usr/local/bin. When I try to get brew's path I get no result: # ssh [email protected] -p 2222 which brew # Troubleshooting: brew is in /usr/...
techraf's user avatar
  • 5,981