Author Topic: SSH and FTP  (Read 1278 times)

0 Members and 1 Guest are viewing this topic.

Offline an0n

  • Banned again
  • 211
  • Emo Hunter
    • http://nodewar.penguinbomb.com/forum
I need an SSH-FTP command that'll send a whole directory from the local 'puter to the remote one.

Anyone?
"I.....don't.....CARE!!!!!" ---- an0n
"an0n's right. He's crazy, an asshole, not to be trusted, rarely to be taken seriously, and never to be allowed near your mother. But, he's got a knack for being right. In the worst possible way he can find." ---- Yuppygoat
~-=~!@!~=-~ : Nodewar.com

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
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...
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline an0n

  • Banned again
  • 211
  • Emo Hunter
    • http://nodewar.penguinbomb.com/forum
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.
"I.....don't.....CARE!!!!!" ---- an0n
"an0n's right. He's crazy, an asshole, not to be trusted, rarely to be taken seriously, and never to be allowed near your mother. But, he's got a knack for being right. In the worst possible way he can find." ---- Yuppygoat
~-=~!@!~=-~ : Nodewar.com

 

Offline Kamikaze

  • A Complacent Wind
  • 29
    • http://www.nodewar.com
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:
Science alone of all the subjects contains within itself the lesson of the danger of belief in the infallibility of the greatest teachers in the preceding generation . . .Learn from science that you must doubt the experts. As a matter of fact, I can also define science another way: Science is the belief in the ignorance of experts. - Richard Feynman

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
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.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Inquisitor

ftp a tarball, then untar it -xvf to preserve directory structure.
No signature.

 

Offline Stealth

  • Braiiins...
  • 211
you'd have to have an ftp server running on the remote computer, and an ftp client on the local one.

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
...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.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline an0n

  • Banned again
  • 211
  • Emo Hunter
    • http://nodewar.penguinbomb.com/forum
Bah. I'm doing it the hard way.

Downloading everything and uploading it to the new place.
"I.....don't.....CARE!!!!!" ---- an0n
"an0n's right. He's crazy, an asshole, not to be trusted, rarely to be taken seriously, and never to be allowed near your mother. But, he's got a knack for being right. In the worst possible way he can find." ---- Yuppygoat
~-=~!@!~=-~ : Nodewar.com

  

Offline Stealth

  • Braiiins...
  • 211
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.