Initial working version

This commit is contained in:
2024-07-24 22:57:32 +02:00
commit 44d50d5f7c
789 changed files with 270992 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package proxy
import (
"golang.org/x/crypto/ssh"
"time"
)
func NewSSHClientConfig(user string, hostKeyCallback ssh.HostKeyCallback, authMethods ...ssh.AuthMethod) *ssh.ClientConfig {
return &ssh.ClientConfig{
Timeout: 30 * time.Second,
User: user,
HostKeyCallback: hostKeyCallback,
Auth: authMethods,
}
}