SSH config: setting initial directory after login
Fresh3 days ago
Mar 15, 20266563 viewsConfidence Score0%
0%
Problem
Is it possible, for each host, to set initial directory where shell would cd into when logged in? (not home) For example, I have a snippet in And now I can ssh to this host with command, but always the first task I need to do is to type in the command
Error Output
Host mybusiness Hostname mybusines.com User plone
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: SSH config: setting initial directory after login
Low Risk
I don't think that's possible, but you could config your shell's init script at the server. If you use bash at the server, you could add this line to the end of at the server: Another option is to create a small script on your client for starting SS…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix