diff --git a/pkg/pssh/server.go b/pkg/pssh/server.go index 5b1777a..ea50ff1 100644 --- a/pkg/pssh/server.go +++ b/pkg/pssh/server.go @@ -203,6 +203,14 @@ func (sc *SSHServerConn) Handle(chans <-chan ssh.NewChannel, reqs <-chan *ssh.Re return nil } sc.Logger.Info("new request", "type", req.Type, "wantReply", req.WantReply, "payload", req.Payload) + switch req.Type { + case "keepalive@openssh.com": + sc.Logger.Info("keepalive reply") + err := req.Reply(true, nil) + if err != nil { + sc.Logger.Error("keepalive", "err", err) + } + } } } }