
Interact with Linux or OS X shell: if you are using netcat in bash, you must change some options of the current terminal device with stty before establishing a connection:.Here are some workarounds according to your use case: We will provide a better way to handle this in a future version. You need to take into consideration some issues such as double echoing (both client and server display your input) or control command interpretation.I/O are forwarded through the SSF tunnel from/to the shell instance.

Each connection to that socket (using netcat for example) will launch a shell on the client side. Y: client orders the server to open a listening socket on the given port (11000). Each connection to that socket (using netcat for example) will launch a shell on the server side. ssf -X 10000 -Y 11000 -X: client opens a listening socket on the given port (10000).

We will be honored to review and accept pull requests.
#Port forwarding utility code free#
This is the first draft and we plan to improve it over time.Īctually, you may have some ideas to improve this feature so feel free to suggest or even implement them. X option will require the shell microservice to be enabled on the server -Y option will require the shell microservice to be enabled on the client Shell microservice must be enabled prior to use ( configuration file) Socket locally ( -X) or instruct the server to open one remotely ( -Y).Įach connection to that socket will then launch a shell on the other side with its I/O forwarded. Instead of having direct interaction with a shell instance, SSF shell option will open a listening TCP The shell feature of SSF is quite different from SSH at the moment. you can set Powershell as the default shell on Windows, see below). The shell is fully configurable by modifying configuration file section (e.g.
#Port forwarding utility code windows#
SSF provides basic shell support on Windows, Linux and OS X with -X and -Yoptions.ĭefault shell is cmd.exe on Windows and /bin/bash on Linux or OS X. U, -udp-forward port:remote_host:remote_portĮnable client UDP port forwarding service L, -tcp-forward port:remote_host:remote_portĮnable client TCP port forwarding service V, -remote-udp-forward port:remote_host:remote_portĮnable remote UDP port forwarding service R, -remote-tcp-forward port:remote_host:remote_portĮnable remote TCP port forwarding service n, -no-reconnect Do not attempt to reconnect after loosing a t, -reconnect-delay arg Time to wait before attempting to reconnect Max unsuccessful connection attempts before p, -port arg Remote port (default: 8011) 'config.json' is loaded from the current working c, -config arg Specify configuration file. Trying to use a feature requiring a disabled microservice will result in an error message.Ĭritical|error|warning|info|debug|trace (default: info) To enable or disable a microservice, set its enable option to true or false. See below an example of configuration file.įor more information about TLS and SSF security see the Security features section. The configuration file is JSON format file in which several options can be specified.Īt this point, only security options relative to TLS use can be customized.
