mirror of
https://github.com/shanghai-edu/multissh.git
synced 2025-12-15 12:57:54 +00:00
Merge pull request #21 from TieWay59/fix-test-ssh
Fix: not enough arguments in call to connect
This commit is contained in:
commit
3f32c3a325
1 changed files with 5 additions and 1 deletions
|
|
@ -16,9 +16,13 @@ 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)
|
session, err := connect(username, password, ip, key, port, cipherList, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue