Re: PublicKey auth in vbs - WeOnlyDo Discussion board

Re: PublicKey auth in vbs (General questions)

by woddrazen, Wednesday, January 24, 2007, 10:36 (6513 days ago) @ vadercent

Hi Tim,

Please try something like this:
[code]
Set sftp1 = CreateObject( WeOnlyDo.wodSFTPCom.1 )
Set key = CreateObject( WeOnlyDo.Keys.1 )

Key.Load c:RSAprivate.txt
Wscript.echo key.PublicKeyOpenSSH(1)

sftp1.HostName = your_hostnae
sftp1.Authentication = 2
sftp1.Login = your_login
sftp1.PrivateKey = key
sftp1.Blocking = 1
sftp1.Connect
Wscript.echo connected
[/code]

Let us know how it goes.


Regards,
Drazen


Complete thread:

 

  • PublicKey auth in vbs - vadercent, 2007-01-24, 10:32 [*]
    • Re: PublicKey auth in vbs - woddrazen, 2007-01-24, 10:36