powerbuilder and sftp - WeOnlyDo Discussion board

powerbuilder and sftp (General questions)

by sstyer, Wednesday, April 20, 2011, 20:08 (4777 days ago)

You guys wouldn't have any examples with powerbuilder, doing sftp
would you?
I'm really not familiar with the inner workings of
public / private keys
I'm familiar with doing standard non-secure ftp transactions
we recently got your product because of this
I'd appreciate any help you can give

Re: powerbuilder and sftp

by woddrazen, Wednesday, April 20, 2011, 21:17 (4777 days ago) @ sstyer

Hi,


Can you please try something like this in PB:
[code]oleObject PBObject
PBObject = create oleObject
PBObject.ConnectToNewObject( WeOnlyDo.Keys.1 )
PBObject.LoadKey( C:\key.txt , password )

ole_1.object.Authentication = 2
ole_1.object.HostName = your_hostname
ole_1.object.Login = your_login
ole_1.object.Password = your_password
ole_1.object.Blocking = 1
ole_1.object.PrivateKey = PBObject
ole_1.object.Connect[/code]
Let us know how it goes.


Regards,
Drazen