Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHConfig ¶
type SSHConfig struct { // ssh server address RemoteAddr string // ssh user User string // ssh password Password string // private key file IdentityKey string // ssh config dir IdentityKeyDir string // Timeout: 10s Timeout time.Duration }
隧道配置
func DefaultSSHConfig ¶
func DefaultSSHConfig() *SSHConfig
func (*SSHConfig) ParseIdentityKey ¶
func (c *SSHConfig) ParseIdentityKey() []ssh.AuthMethod
从私钥文件创建 SSH 认证方法
func (*SSHConfig) SSHPassword ¶
func (c *SSHConfig) SSHPassword() ssh.AuthMethod
func (*SSHConfig) SetSSHHost ¶
func (*SSHConfig) SetSSHUser ¶
type SSHTun ¶
func (*SSHTun) DisableSystemProxy ¶
func (st *SSHTun) DisableSystemProxy()
func (*SSHTun) EnableSystemProxy ¶
ref. https://github.com/wzshiming/sysproxy/blob/master/cmd/sysproxy/main.go
func (*SSHTun) PacInspect ¶
Click to show internal directories.
Click to hide internal directories.