Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DarnSocks ¶
func DarnSocks(config MainConfig) error
DarnSocks creates a new SOCKS5 server at the provided ports and remote-forwards the port to another machine over SSH
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/config.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.