Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddHostKey (0.09 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) {
    		server := sftp.NewRequestServer(channel, NewSFTPDriver(sconn.Permissions), sftp.WithRSAllocator())
    		defer server.Close()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top