SSH Authentication error - "Invalid key data, not base64 encoded"
Hi,
We are having an issue with the class %Net.SSH.Session - it accepts a username, publicKeyFile, privateKeyFile and passPhrase.
This is our example code:
set ssh = ##class(%Net.SSH.Session).%New()
set tSC = ssh.Connect("172.10.10.1", 22)
$$$ThrowOnError(tSC)
set Username = "a"
set passphrase = "123"
set pub = "C:\FTPServer\pubkey\publicKey.pub"
set priv = "C:\FTPServer\private.key"
set tSC = ssh.AuthenticateWithKeyPair(Username,pub,priv,passphrase)
$$$ThrowOnError(tSC)
We are getting the following error:
ERROR #7500: SSH AuthenticateWithKeyPair Error '-2146430960': SSH Error [80101010]: Invalid key data, not base64 encoded [80101010] at Session.cpp:313,0
We have generated our RSA public / private keys in an OpenSSH format using PuttyGen.
Any help on this would be appreciated.