Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(cfg *ConnectConfig) (*ssh.Client, error)
Connect 建立 SSH 连接 认证优先级: 指定密钥 > 密码 > SSH Agent > 默认密钥路径
func RunCommand ¶
RunCommand 执行单条命令,stdout/stderr 实时回显
func RunCommandOutput ¶
RunCommandOutput 执行命令并捕获输出(不回显)
Types ¶
Click to show internal directories.
Click to hide internal directories.