Add -ssh: an opt-in built-in SSH server (public keys only, sessions only)
This commit is contained in:
1 parent
2dea372f9a
commit
fc3d98ac83
10 files changed
+654
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package sshd
|
||||
|
||||
import "golang.org/x/crypto/ssh"
|
||||
|
||||
// Shells need a pseudo-terminal, which Windows has no simple equivalent of here, so the server
|
||||
// signs people in but refuses to start a session. main reports this before it starts the server.
|
||||
const (
|
||||
ptySupported = false
|
||||
runSupported = false
|
||||
)
|
||||
|
||||
func run(ssh.Channel, string, *ptyReq, <-chan [2]uint32) int { return 1 }
|
||||
Reference in new issue
Block a user