Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddHostKey (1.53 sec)

  1. 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 = host
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
Back to top