Skip to content

Commit

Permalink
Adding default on HostKeyCallback
Browse files Browse the repository at this point in the history
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 authored and kennylevinsen committed Feb 6, 2018
1 parent 51379d3 commit 6b6ca43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 6b6ca43

Please sign in to comment.