Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: an0n on August 14, 2003, 11:25:13 pm

Title: SSH and FTP
Post by: an0n on August 14, 2003, 11:25:13 pm
I need an SSH-FTP command that'll send a whole directory from the local 'puter to the remote one.

Anyone?
Title: SSH and FTP
Post by: Admiral LSD on August 15, 2003, 12:53:41 am
If you have SSH installed on both the source and destination PCs you might be able to get away with just using the scp command along with the -r (recursive) switch, provided it's supported in your implementation of SSH, and not have to use FTP at all.

Code: [Select]
scp -r account:password:/path/to/remote/directory /path/to/local/directory

edit: stupid smiley triggers...
Title: SSH and FTP
Post by: an0n on August 15, 2003, 12:59:53 am
I ain't got SSH on the remote one.

Thus why I'm going to all this trouble instead of just logging on to that one and using an FTP get -r command. They want $20 to set the damn thing up.

You'd think after decades of FTP and UNIX and SSH and all that crap that somewhere along the way someone woulda just gone "Hey, maybe we should just make the FTP's send command work on directories too". But no. Because the universe hates me.

Thanks anyway.
Title: SSH and FTP
Post by: Kamikaze on August 15, 2003, 04:23:39 am
If you don't have subdirectories in the local folder you could use the mput command like "mput /place/where/local/folder/stuff/is/*". Mput is the put command but with multiple files. That's the only ftp command I could find that looks helpful in this case.

By the way, the "?" ftp command is wonderful, I recommend it :nod:
Title: SSH and FTP
Post by: mikhael on August 15, 2003, 10:15:21 am
Quote
Originally posted by an0n

You'd think after decades of FTP and UNIX and SSH and all that crap that somewhere along the way someone woulda just gone "Hey, maybe we should just make the FTP's send command work on directories too". But no. Because the universe hates me.


WS-FTP LE will send entire directories just fine. I use it regularly. If you've got a *nix box on your end NCFTP3 will send directories too.
Title: SSH and FTP
Post by: Inquisitor on August 15, 2003, 01:22:49 pm
ftp a tarball, then untar it -xvf to preserve directory structure.
Title: SSH and FTP
Post by: Stealth on August 15, 2003, 07:00:18 pm
you'd have to have an ftp server running on the remote computer, and an ftp client on the local one.
Title: SSH and FTP
Post by: Admiral LSD on August 15, 2003, 10:08:47 pm
...not to mention some kind of shell access on the remote machine, either locally through a terminal or remotely through something like SSH, to decompress the tarball which an0n has already said he doesn't have.
Title: SSH and FTP
Post by: an0n on August 15, 2003, 11:48:34 pm
Bah. I'm doing it the hard way.

Downloading everything and uploading it to the new place.
Title: SSH and FTP
Post by: Stealth on August 17, 2003, 12:38:29 am
i'm thinking... you already have an FTP server, that might be able to be used to your advantage, even if you have to upload to your FTP server and then download (SSH the remote computer) onto the remote computer.

i'm curious, is the remote computer or the local computer you were referring to the FTP server?  cause if one of them is, that would make it much easier for you to transfer stuff from one to another.