Skip to content
Snippets Groups Projects
Commit 7dae123d authored by David Cowden's avatar David Cowden
Browse files

server: Add package name as a version comment

This provides a little extra info to clients.
parent 1afb49f6
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,7 @@ func (f ChannelHandlerFunc) ServeChannel(stream Channel, requests <-chan *ssh.Re ...@@ -100,6 +100,7 @@ func (f ChannelHandlerFunc) ServeChannel(stream Channel, requests <-chan *ssh.Re
// TODO rename this "InsecureOpenServerConfig"? // TODO rename this "InsecureOpenServerConfig"?
func DefaultServerConfig() *ssh.ServerConfig { func DefaultServerConfig() *ssh.ServerConfig {
return &ssh.ServerConfig{ return &ssh.ServerConfig{
ServerVersion: "SSH-2.0-Go sshutil",
PublicKeyCallback: allowAllPublicKeys, PublicKeyCallback: allowAllPublicKeys,
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment