[macOS] How to auto-cd into a directory on connect? #1581
-
|
Hi, Bonjour, Two quick questions about WebSSH on macOS (Version 31.2):
the docs mention using RemoteCommand in the SSH Config File, but I can't find the "Edit /etc/ssh/ssh_config" option anywhere in the Mac version.
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi Joan, To answer both of your questions: 1. The SSH Config File in WebSSH is virtual — not the system oneWebSSH doesn’t use the system’s
On macOS the option is there — just scroll down to the SSH section in WebSSH Settings. Once you find it, you can add something like: where More details in the SSH Config File documentation. 2. What “Execute command” in Terminal Settings doesThis is equivalent to So instead of: use: Either approach (SSH Config File or Terminal Settings) should work — the SSH Config File will take precedence if both are set. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, this worked! A couple of remarks that might help other users: 1. Documentation clarity — SSH Config File location The docs say: Settings ⚙️ → SSH section → "Edit /etc/ssh/ssh_config" This is confusing on macOS because there are two Settings buttons in the top bar:
Suggestion: update the docs to say Other Settings ⚙️ → SSH section → "Edit /etc/ssh/ssh_config" to avoid confusion. 2. The Execute command setting works great, but I struggled at first because the workflow isn't obvious:
I was missing step 3 and instead I was using the back button, and couldn't understand why my changes weren't taking effect. Maybe you could make this |
Beta Was this translation helpful? Give feedback.
Hi Joan,
To answer both of your questions:
1. The SSH Config File in WebSSH is virtual — not the system one
WebSSH doesn’t use the system’s
/etc/ssh/ssh_config. It has its own virtual SSH Config File, accessible via:On macOS the option is there — just scroll down to the SSH section in WebSSH Settings. Once you find it, you can add something like:
where
MY_SERVER_NAMEmatches the connection name (alias) you’ve set in WebSSH.More details in the SSH Config File documentation.
2. What “Execute command” in Terminal Settings does
This is equivalent to
Remo…