4

When I connect to a remote host via mc's Shell link, I always start at that host's root directory. Is there a way to specify that I want to start in a different directory, e.g. the home directory of the user I connect as?

If I just ssh to the host, I start at the home directory by default.

3
cd sh://user@host:/any/path/you/want
| improve this answer | |
  • is there a way to do it "shorter" for the usual use case: F9 > Shell link... > "hostname", and I'd like me to land in the home directory – Gavriel Dec 19 '18 at 7:44
2

You can specify the starting directory by adding :/pathname after.

ex: user@machine:/path/to/folder

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.