View Full Version : Advanced SSH (well for me)
I wanted something off my brothers computer. We are behind a router, and so I can only SSH to my computer from other places. So I ssh'd to mine, then to my brothers from mine. (the advanced part ;))
So I got on his computer, found what I wanted, but have absolutely NO idea how to get files from one computer to another if you are connected through SSH. Can ya help me out please?
SSH doesn't do file transfer; it's just a remote shell for executing commands.
However, you might bee able to pipe an FTP connection over SSH. Though, I've never tried piping FTP and it might be troublesome since FTP usually opens random high ports to get the work done. It's still work a try.
If you've never done something like this, you can adapt my instructions (http://brad.project-think.com/tipinfo.php?ID=3) for piping VNC over SSH to do FTP. Where VNC uses port 5900, FTP uses port 21.
On a related note, I believe SFTP is actually an FTP connection automatically routed through ssh on port 22. So, you might want to look into that as well.
Gargoyle
2004-08-09, 15:18
normally, if you can do ssh then you can do sftp. Connect the same as you ssh, eg. just replace the ssh command with sftp. (If you used a "gui" like putty then you will have to get an equivalent sftp client.) Once you are in then the basic ftp commands work:-
cd - change remote dir
lcd - change your local dir
get - get a file
put - put a file
HTH
thuh Freak
2004-08-09, 15:31
whoa, hold up there, cowboy. `scp username@foreigncomputer:/path/to/foreign/file /path/to/soon/to/be/local/file`
you can also do it in reverse: `scp /path/to/local user@foreign:/path/to/new/remote`
or, just fuck all the foreign shit and do a secure local->local copy: `scp /path/one /path/two`
no new software. scp should be included with macosx (if memory serves).
i do this all the time to get to my little sisters computer (behind my nat).
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.