Skip to content

Commit

Permalink
no banner on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ferama committed Aug 4, 2021
1 parent c346d81 commit 34b5dfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sshd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"io/ioutil"
"net"
"runtime"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -140,6 +141,9 @@ func (s *sshServer) Start() {
}
},
BannerCallback: func(conn ssh.ConnMetadata) string {
if runtime.GOOS == "windows" {
return ""
}
return `
.-------------.
| Rospo sshd |
Expand Down

0 comments on commit 34b5dfe

Please sign in to comment.