Re: SFTP with .PPK file

2017-03-20 Thread Stephen MacLean via use-livecode
Hi Charles, Thank you so much, that did the trick!!! Best Regards, Steve MacLean > On Mar 18, 2017, at 4:05 AM, Charles Warwick via use-livecode > wrote: > > Hi Steve, > > Ahh... it's been a while since I wrote the SSH component of tsNet and I've > been

Re: SFTP with .PPK file

2017-03-18 Thread Charles Warwick via use-livecode
Hi Bob, tsNet calculates the public key from the private key, so you only need to pass the private key to the tsNet functions. Cheers, Charles On 18/03/2017 4:00 AM, Bob Sneidar via use-livecode wrote: Looks like it DOES need the public key after all. I thought that was the way SSH

Re: SFTP with .PPK file

2017-03-18 Thread Charles Warwick via use-livecode
Hi Steve, Ahh... it's been a while since I wrote the SSH component of tsNet and I've been unfortunately relying on the documentation I wrote when checking your code! tSettings["ssh_private_key"] must provide the "path" to the private key, not the contents of the private key (another

Re: SFTP with .PPK file

2017-03-17 Thread Bob Sneidar via use-livecode
Looks like it DOES need the public key after all. I thought that was the way SSH worked. I was surprised when you said TSNet doesn't need the public key. Bob S > On Mar 17, 2017, at 06:36 , Stephen MacLean via use-livecode > wrote: > > SSH public key

Re: SFTP with .PPK file

2017-03-17 Thread Stephen MacLean via use-livecode
Hi Charles, Again, thank you for all your help!! I made the change below, and indeed didn’t get the error any more. However, I still wasn’t getting anything returned. I ran your debug stack along side it and got this: Hostname in DNS cache was stale, zapped Trying xx.xx.xx.xx... TCP_NODELAY

Re: SFTP with .PPK file

2017-03-17 Thread Charles Warwick via use-livecode
Hi Steve, My apologies... there is a mistake in the documentation for tsNet which I only just noticed. The array element for the SSH private key should be tSettings["ssh_private_key"], not tSettings["ssh_priv_key"]. So if you change the following line: put tPrivKey into

Re: SFTP with .PPK file

2017-03-17 Thread Charles Warwick via use-livecode
Hi Steve, The tsNet command only requires the SSH private key, so that is ok. I will test again here to make sure there is nothing else going on in LC 9.0 DP6 Just to check though, I assume your private key does not require a passphrase? Another thing to try is to download the

Re: SFTP with .PPK file

2017-03-16 Thread Stephen MacLean via use-livecode
Hi Charles, One other thing… in looking at the .ppk file, it contains both “public lines” and "private lines”. All I see in the ssh key file is private. Not sure that make any difference, but thought I’d mention it. Best, Steve > On Mar 16, 2017, at 7:53 AM, Stephen MacLean via

Re: SFTP with .PPK file

2017-03-16 Thread Stephen MacLean via use-livecode
Hi Charles, Thank you so much for reply! I converted the key file as you described, however, I’m still getting the error 67 (authentication error) when running the script. Any further help would be greatly appreciated. Best, Steve MacLean > On Mar 16, 2017, at 3:08 AM, Charles Warwick via

Re: SFTP with .PPK file

2017-03-16 Thread Charles Warwick via use-livecode
Hi Steve, It looks like you are using a SSH private key in PuTTY format (.ppk). tsNet requires it to be in OpenSSH format. That is easy to fix though, you can convert the .ppk with PuttyGen. To do this, open PuttyGen and load the .ppk file. Then select "Conversions" -> "Export OpenSSH

Re: SFTP with .PPK file

2017-03-15 Thread Stephen MacLean via use-livecode
Well, still no luck in getting it to work, but getting closer… I found a sample file linked to on livecode.com . Modifying it to use the key file, I have: on mouseUp local tHeaders, tResult, tSettings put “" into tSettings["username"] put URL