Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Connecting with Password AND Private Key File using SftpClient

$
0
0
Not sure if it works, but maybe you can use the generic SshClient with ConnectionInfo.
            var coninfo = new ConnectionInfo("1.2.3.4", "peter", new PasswordAuthenticationMethod("peter", "peter"),
                new PrivateKeyAuthenticationMethod("peter", new PrivateKeyFile("foo.key")));
            var client = new SshClient(coninfo);

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>