Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextDialer ¶
func SSH ¶
func SSH(uri, keyfile string) (dl ContextDialer, er error)
SSH 根据 ssh 连接和密钥文件路径, 创建 dialer
登录模式: password - uri: "ssh://[user]:pass@host:[port]" user 默认为 `root`, port 默认为 `22` keypair - uri: "ssh://[user]:[pass]@host:[port]" user 默认为 `root`, pass 是密钥的密码, port 默认为 `22`
Click to show internal directories.
Click to hide internal directories.