Hi Janet,

As others has mentioned, there is no native sftp client (yet?) in 4D. On Mac 
I’m using the OS built in sftp command which is called using LAUNCH EXTERNAL 
PROCESS.
For my purpose, I create a ‘batch’ file which contains the necessary sftp 
commands and then run it with sftp.

Eg. a possible content of the batch file could be:
cd /mydir
ls -1

Set the directory to mydir and get the directory listing. Keep in mind this is 
Unix, you must separate the lines with line feeds.

Then the command is like:
sftp -b ‘pathToBatchFileInPosixFormat’ -i ‘pathToIdentityFileInPosix’ 
-oPort=9999 username@serveraddress

pathToIdentityFileInPosix is the path to the rsa file containing your key. This 
file is normally stored in your home folder in a .ssh directory: 
/Users/yourname/.ssh
You can use eg System folder(Desktop) to get the path to your home folder. Just 
toss out the last part of the path.

The fun with this is you can setup and test first in terminal and when all is 
working as expected, move to 4D.

HTH
Koen

> Op 13 sep. 2017, om 17:27 heeft Janet Jonas via 4D_Tech 
> <[email protected]> het volgende geschreven:
> 
> Does 4D have any native capability to do SFTP file transfers and/or generate 
> a SSH-2 RSA public and private key pair?
> 
> Any pointers would be welcome.



--------------------
Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to