25 chars of wasted space.
|
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? |
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
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 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. The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting. |
quote |
http://ga.rgoyle.com
Join Date: May 2004
Location: In your dock hiding behind your finder icon!
|
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 OK, I have given up keeping this sig up to date. Lets just say I'm the guy that installs every latest version as soon as its available! |
quote |
Finally broke the seal
Join Date: May 2004
|
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). |
quote |
Posting Rules | Navigation |
|
Thread Tools | |