Local Shell (Windows Command Prompt)) → Local Shell Overview
The local shell connection type will create a session which opens a shell or runs a program local computer. This way you can have a local terminal sessions (e.g. bash or zsh) within ZOC, thus replacing the macOS terminal or command prompt window.
Since all sessions ZOC are connection based, when using Local Shell you will need to specify a destination to connect to even if you are not actually connecting to another computer.
Therefore valid Connect to destinations are either localhost or 127.0.0.1. In this case the Local Shell handler will run the command which is specified in the Local Shell Settings, which by default is /usr/bin/login for macOS and C:\Windows\System32\cmd.exe for Windows.
To run a different command, you can modify the Local Shell options in the Connection Type section of the Session Profile. For a single connection you can use the Configure button of the Quick Connect window or in the Host tab of your Host Directory entry.
Alternately you can use #! followed by any system executable as the destination. For example, on macOS you can #!/usr/bin/login -p harry or #!/usr/bin/zsh or #!/usr/bin/ssh secure.hogwarts.edu in the Connect to field. Under Windows you can specify Connect to as a command like #!C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.
← Back to Local Shell (Windows Command Prompt))