Windows Terminal SSH | Microsoft Docs
docs.microsoft.com › en-us › windowsDec 10, 2021 · Windows Terminal Profile - General settings; Specify starting directory. To specify the starting directory for a ssh session invoked by Windows Terminal, you can use this command: { "commandline": "ssh -t bob@foo \"cd /data/bob && exec bash -l\"" } The -t flag forces pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, e.g. when implementing menu services.