This project is read-only.

Permission denied (publickey)

Jul 7, 2014 at 10:12 PM
Edited Jul 8, 2014 at 8:15 PM
   When connecting to Unix using PrivateKey, what should be passed as "username" parameter ?
PrivateKeyFile SSHKey = new PrivateKeyFile( @"C:\x_dsa.txt" );
string userName = "user1";
PrivateKeyConnectionInfo conInfo = new PrivateKeyConnectionInfo( host, userName, SSHKey );
using ( ScpClient scp = new ScpClient( conInfo ) )
I have tried to pass actual user id or private key name but it always failes with an error "Permission denied (publickey)" (internally: user authentication failed)