Well, still no luck in getting it to work, but getting closer… I found a sample file linked to on livecode.com <http://livecode.com/>. Modifying it to use the key file, I have:
on mouseUp local tHeaders, tResult, tSettings put “xxxxxxxx" into tSettings["username"] put URL "binfile:D:\private.ppk" into tPrivKey put tPrivKey into tSettings["ssh_priv_key"] tsNetInit put tsNetGet("1", "sftp://secure.xxxxxxxx.us/", tHeaders, "transferComplete", tSettings) into tResult end mouseUp However, it returns: tsneterr: (67) Authentication failure Again, I can access the sftp site with no problems using the WinSCP ftp client and the key file. Any suggestions?? Thanks, Steve MacLean > On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Hi All, > > Looking to use tsNet to connect to a SFTP server that uses username and a > private key instead of a password. The private key is contained in a file. > > I use WinSCP and can link the connection to the file and can connect fine. > > In LC, I’ve set the CABundle to the file, but am not sure this is how it’s > supposed to work. Getting an auth error when doing tsNetGet. > > Any help would be appreciated. > > Thanks, > > Steve MacLean > > PS: Running 9.0 dp6 Business > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode