repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
97df9d9
parent
0f5f625
author
Eric Bower
date
2025-07-21 09:23:33 -0400 EDT
feat(pssh): handle keepalive
1 files changed,  +8, -0
M pkg/pssh/server.go
+8, -0
 1@@ -203,6 +203,14 @@ func (sc *SSHServerConn) Handle(chans <-chan ssh.NewChannel, reqs <-chan *ssh.Re
 2 				return nil
 3 			}
 4 			sc.Logger.Info("new request", "type", req.Type, "wantReply", req.WantReply, "payload", req.Payload)
 5+			switch req.Type {
 6+			case "keepalive@openssh.com":
 7+				sc.Logger.Info("keepalive reply")
 8+				err := req.Reply(true, nil)
 9+				if err != nil {
10+					sc.Logger.Error("keepalive", "err", err)
11+				}
12+			}
13 		}
14 	}
15 }