I have a client that wants our system to transfer files to and from a SFTP site using a public ssh key instead of a user name and password. Since the FTPGETFILE and FTPSEND OI commands require a username and password how do I connect to a SFTP site.
You don't - SFTP is a whole different beast again. See http://en.wikipedia.org/wiki/SSH_file_transfer_protocol
We ended up having to write our own software to do it.
World leaders in all things RevSoft
Sara,
A client was using an SFTP program called Bitvise Tunnelier (http://www.bitvise.com/tunnelier) which has built in command line calls. So I was able to automate the SFTP processes from within OI. It's not actually OI making the SFTP calls, but it is the one pulling the strings.
I'm sure there are other SFTP programs you could also drive via the command prompt if the above one is not an option.
Hope this helps,
The FTPGETFILE and FTPSEND commands were written in late 2001. They were carefully crafted in Basic+ itself, in about 120 lines of code for each routine. If I recall, Bob Carten then tidied them up so they looked like a real programmer's work, rather than my inane scratchings.
SFTP was being specified from 2001 to 2006. If I'd known about it in 2001 I would have included it.
There is no reason why SFTP couldn't be written in BASIC+
If you shoot an email to [email protected] I may be able to help further.
Eric