- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for AddHostKey (0.05 seconds)
-
cmd/sftp-server.go
PublicKeyCallback: sshPubKeyAuth, } if !disablePassAuth { sshConfig.PasswordCallback = sshPasswordAuth } else { sshConfig.PasswordCallback = nil } sshConfig.AddHostKey(private) handleSFTPSession := func(channel ssh.Channel, sconn *ssh.ServerConn) { var remoteIP string if host, _, err := net.SplitHostPort(sconn.RemoteAddr().String()); err == nil { remoteIP = hostCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 16.5K bytes - Click Count (0)