Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHClient ¶
type SSHClient struct{}
SSHClient is a client for SSH servers.
Internally client uses github.com/zmap/zgrab2/lib/ssh driver.
func (*SSHClient) Connect ¶
Connect tries to connect to provided host and port with provided username and password with ssh.
Returns state of connection and error. If error is not nil, state will be false
func (*SSHClient) ConnectSSHInfoMode ¶
ConnectSSHInfoMode tries to connect to provided host and port with provided host and port
Returns HandshakeLog and error. If error is not nil, state will be false
HandshakeLog is a struct that contains information about the ssh connection
func (*SSHClient) ConnectWithKey ¶
ConnectWithKey tries to connect to provided host and port with provided username and private_key.
Returns state of connection and error. If error is not nil, state will be false