mirror of
https://github.com/shanghai-edu/multissh.git
synced 2025-12-16 05:17:52 +00:00
doc: 增加 Test_SSH 函数描述
This commit is contained in:
parent
fa8ecd9a33
commit
cfc416503f
1 changed files with 4 additions and 0 deletions
|
|
@ -16,6 +16,10 @@ const (
|
||||||
key = "../server.key"
|
key = "../server.key"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Tests the SSH functionality of the package.
|
||||||
|
//
|
||||||
|
// It requires manual input of the local SSH private key path into the key
|
||||||
|
// variable, and the remote address into the ip variable.
|
||||||
func Test_SSH(t *testing.T) {
|
func Test_SSH(t *testing.T) {
|
||||||
var cipherList []string
|
var cipherList []string
|
||||||
session, err := connect(username, password, ip, key, port, cipherList, nil)
|
session, err := connect(username, password, ip, key, port, cipherList, nil)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue