include pastebin

This commit is contained in:
Barak Michener 2020-11-13 20:52:44 -08:00
parent 13a0b53e3e
commit 83b37864ef
9 changed files with 188 additions and 14 deletions

View file

@ -12,9 +12,10 @@ type echoHandler struct {
count int
}
func (e *echoHandler) HandleExec(_ string, conn *ssh.ServerConn, channel ssh.Channel) {
func (e *echoHandler) HandleExec(_ string, conn *ssh.ServerConn, channel ssh.Channel) error {
e.count += 1
io.Copy(channel, channel)
_, err := io.Copy(channel, channel)
return err
}
func (e *echoHandler) Close() error {