ssh: Update welcome message

This commit is contained in:
Tom Wiesing 2022-11-14 14:51:03 +01:00
parent 8cfb23bed0
commit 7bfcfb3510
No known key found for this signature in database
2 changed files with 71 additions and 12 deletions

View file

@ -12,16 +12,6 @@ const (
eot rune = 4
)
const welcomeMessage = `Welcome to the WissKI SSH Server.
You've successfully authenticated, but we don't provide shell access to the main server.
You may use this connection as part of a proxy jump to connect to your server.
For example:
ssh -J %s:2222 www-data@%s
Press CTRL-C to close this connection.
`
// Server returns an ssh server that implements the main ssh server
func (ssh2 *SSH2) Server(context context.Context, privateKeyPath string, io stream.IOStream) (*ssh.Server, error) {
var server ssh.Server