Click to See Complete Forum and Search --> : Secure FTP wrapper


Kint
11-30-2000, 12:33 PM
Here's an interesting scenario, on which I need help.

I have a RedHat box in a remote location, to which I need to send updates in the form of RPM packages (packaged by our company, and that provides modifications to our software). The machine automagically dials into our network every week, and authenticates itself.

Since the RPM files I need to send to the box contain sensitive data, I want to encrpyt the whole thing. The transfer of data between my server and the remote box is done via FTP. Ideally, I'd want to use OpenSSH and the SFTP wrapper.

What I don't know is how to get RPM to correctly use SFTP instead of FTP to transfer the file(s). Since SFTP is a wrapper for FTP, I suppose there's an easy way to do this. So far, commands like rpm -Uvh sftp://my_remote_machine/some_package.rpm have failed. The devel guy for the updating system has very impressive documentation for RPM, so modifying it (if need be) is very possible.

Any clues?

------------------
Kint

Smippity-Smoo
11-30-2000, 12:38 PM
I believe there is a better thing than sftp that is included with OpenSSH. It is as they put it a replacement for ftp and uses the same security as ssh.

Here is a link to the manpage. http://www.openbsd.org/cgi-bin/man.cgi?query=scp&sektion=1

Smippity-Smoo
11-30-2000, 12:52 PM
Went to RPM find and here is the search results.

You should hopefully find something that works here:
http://rpmfind.net/linux/rpm2html/search.php?query=sftp

Hope this helps.

jemfinch
11-30-2000, 03:32 PM
Actually, sftp isn't a wrapper for ftp, it's a wrapper for scp, a program that can copy files through an ssh tunnel.

scp, actually, being non-interactive, is better suited to your needs for scripting and such.

scp is also included in the standard OpenSSH distribution, whereas sftp is a proprietary add on to some other ssh libraries, iirc.

man scp for more information.

Jeremy

Kint
11-30-2000, 03:47 PM
Thanks for all your info.

The guys at attrition came up with this :

SFTP wrapper (http://www.attrition.org/tools/src/sftp)


------------------
Kint