I am trying to make a connection prior to buying this component for our company. The server is rejecting our Public Key. Here is a snippet of the code and the login call.
Do we need to do anything special to register the key on the client machine?
Any advice would be hugely appreciate else we will need to go different route for SFTP component.
Dim Parameters As New SshParameters()
Parameters.KeyExchangeAlgorithms = SshKeyExchangeAlgorithm.DiffieHellmanGroup1SHA1
client.Connect(txtSftpServer.Text, 22, Parameters)
' change the log path if needed
client.LogWriter = New Rebex.FileLogWriter("c:\temp\log.txt", Rebex.LogLevel.Debug)
' verify the server's fingerprint here unless using the event handler
Dim fingerprint As String
fingerprint = client.Fingerprint()
Dim privateKey As New SshPrivateKey("\PrivateKey", "")
client.Login("rmst", privateKey)
' change the log path if needed
client.LogWriter = New Rebex.FileLogWriter("c:\temp\log.txt", Rebex.LogLevel.Debug)