mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-05 07:16:54 +08:00
feat: add ssh to linux server
This commit is contained in:
16
pkg/daemon/handler/ssh_test.go
Normal file
16
pkg/daemon/handler/ssh_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/wencaiwulue/kubevpn/pkg/util"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestName(t *testing.T) {
|
||||
cmd := fmt.Sprintf(`hash kubevpn1 || type kubevpn1 || which kubevpn1 || command -v kubevpn1`)
|
||||
serverIP, stderr, err := util.RemoteRun(&util.SshConfig{
|
||||
ConfigAlias: "ry-dev-agd",
|
||||
}, cmd, nil)
|
||||
|
||||
fmt.Println(string(serverIP), string(stderr), err)
|
||||
}
|
Reference in New Issue
Block a user