Merge pull request #398 from sosedoff/ssh-host-callback-fix

SSH connection fix
This commit is contained in:
Dan Sosedoff 2018-12-14 20:18:41 -06:00 committed by GitHub
commit 9a3c79d93d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -9,9 +9,9 @@ import (
"strings"
"time"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
"github.com/jmoiron/sqlx"
"github.com/sosedoff/pgweb/pkg/command"
"github.com/sosedoff/pgweb/pkg/connection"
"github.com/sosedoff/pgweb/pkg/history"

View File

@ -86,6 +86,9 @@ func makeConfig(info *shared.SSHInfo) (*ssh.ClientConfig, error) {
User: info.User,
Auth: methods,
Timeout: time.Second * 10,
HostKeyCallback: func(hostname string, remote net.Addr, key ssh.PublicKey) error {
return nil
},
}
return cfg, nil