我正在使用SharpSSH的Sftp类来上传文件。有人要求我启用RSA身份验证。我找不到怎么做的信息。要在SharpSSH中支持公钥身份验证,我需要做些什么?
我现在所做的就是
ftp = new Sftp(config.SftpServer, config.SftpUsername, config.SftpPassowrd);
ftp.Connect();发布于 2012-09-18 02:29:32
为了与RSA连接,我需要创建一个OpenSSH格式键并将其保存到磁盘。PuttyGen在这方面做得很好。然后,我只需要使用该文件调用AddIdentityFile,如下所示
ftp = new Sftp(config.SftpServer, config.SftpUsername, config.SftpPassowrd);
ftp.AddIdentityFile("file");
ftp.Connect();https://stackoverflow.com/questions/12378176
复制相似问题