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

New Post: Permission denied (publickey)

$
0
0
Hi,
   I am using private key to connect to Unix host.
PrivateKeyFile SSHKey = new PrivateKeyFile( @"C:\x_dsa.txt" );
string userName = "user1";
PrivateKeyConnectionInfo conInfo = new PrivateKeyConnectionInfo( host, userName, SSHKey );
using ( ScpClient scp = new ScpClient( conInfo ) )
{
scp.Connect();
but it always failes with error "Permission denied (publickey)"

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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