Skip to content
Permalink
Browse files

Adding default on HostKeyCallback

Since this issue golang/go#19767 the default behaviour of HostKeyCallback changed, so the old behaviour can be achieved with this change.
  • Loading branch information...
robermorales committed Feb 6, 2018
1 parent 51379d3 commit 89d90489fc146a8e32bae93b4b2c69dc78b47a10
Showing with 1 addition and 0 deletions.
  1. +1 −0 forward.go
@@ -188,6 +188,7 @@ func (s *Server) SessionForward(session *Session, newChannel ssh.NewChannel, cha
ag := agent.NewClient(agentChan)

clientConfig := &ssh.ClientConfig{
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
User: session.Conn.User(),
Auth: []ssh.AuthMethod{
ssh.PublicKeysCallback(ag.Signers),

0 comments on commit 89d9048

Please sign in to comment.
You can’t perform that action at this time.