User Name
Password
AppleNova Forums » Genius Bar »

Advanced SSH (well for me)


Register Members List Calendar Search FAQ Posting Guidelines
Advanced SSH (well for me)
Thread Tools
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2004-08-09, 12:02

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
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2004-08-09, 12:37

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
Gargoyle
http://ga.rgoyle.com
 
Join Date: May 2004
Location: In your dock hiding behind your finder icon!
 
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

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
thuh Freak
Finally broke the seal
 
Join Date: May 2004
 
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).
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools

« Previous Thread | Next Thread »

All times are GMT -5. The time now is 19:33.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova