0

I have a FTP file to connect a FTP site.

ftp -i -sc:\PATH\batchFile.txt IP.IP.IP

This files call a second file file, which contains user name and pass.

Username
PAss 

And I want to use this credentials for another file. How can I use an external command to use & reference that credential file for multiple FTP operations?

1 Answers1

0

Instead of using a username/password in a file , it is better to use ssh keys and the secure version of ftp based on ssh which is sftp

https://www.freebsd.org/cgi/man.cgi?query=sftp&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html

If you are on windows, then I believe winscp also provides a scriptable sftp command line client https://winscp.net/eng/docs/scripting

Spangen
  • 4,420
  • 5
  • 37
  • 42