Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardService ¶
func ForwardService(config MainConfig) error
ForwardService implements reverse port forwarding, similar to the -R flag in openssh-client. Configuration is done in the configs/ssh.json file. NOTE The generated keys and config.json data are embedded in the binary so take the appropriate precautions when setting up the ssh server user.
Types ¶
type MainConfig ¶
type MainConfig struct { SSH sshConfig `json:"ssh"` Socks socksConfig `json:"socks"` }
MainConfig contains SSH and Socks configuration variables
Click to show internal directories.
Click to hide internal directories.