Here is example how to connect to server with PrivateKey:
Set ssh1 = New wodSSHCom
Set key = New Keys
key.Load "c:\RSAprivate.txt"
ssh1.Protocol = SSHAuto
ssh1.HostName = "your_hostname"
ssh1.Authentication = authPubkey
ssh1.Login = "your_login"
ssh1.PrivateKey = key
ssh1.Blocking = True
ssh1.Connect
PublicKey is part of PrivateKey. If you wish to connect to server with PrivateKey, server need to have your PublicKey.
You can generate and save PrivateKey and PublicKey with wodKeys component.
WodKeys component is part of wodSSH ActiveX component.