add UpstreamHostKeyCallback
This commit is contained in:
parent
48e477cb34
commit
a0e882e801
1 changed files with 3 additions and 2 deletions
|
|
@ -43,8 +43,9 @@ func main() {
|
|||
|
||||
// TODO make this pluggable
|
||||
piper := &ssh.SSHPiperConfig{
|
||||
FindUpstream: findUpstreamFromUserfile,
|
||||
MapPublicKey: mapPublicKeyFromUserfile,
|
||||
FindUpstream: findUpstreamFromUserfile,
|
||||
MapPublicKey: mapPublicKeyFromUserfile,
|
||||
UpstreamHostKeyCallback: ssh.InsecureIgnoreHostKey(), // TODO should support by config
|
||||
}
|
||||
|
||||
if config.Challenger != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue