mirror of
https://github.com/xor-gate/go-socks5-ssh-proxy
synced 2026-03-23 06:16:35 +01:00
Initial working version
This commit is contained in:
15
vendor/github.com/cloudfoundry/socks5-proxy/ssh_client_config.go
generated
vendored
Normal file
15
vendor/github.com/cloudfoundry/socks5-proxy/ssh_client_config.go
generated
vendored
Normal 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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user