Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SSH in Terminal, retrieve files

509 views
Skip to first unread message

Geoff Welsh

unread,
Mar 21, 2005, 12:44:22 PM3/21/05
to
While SSH'd from my home directory on my machine to my home directory on
another machine.....how to I "get" (like ftp) a file from there to here?

I'm guessing there is some long name for my machine I don't know and
that I just need to scp in reverse?
thanks
GW

David Magda

unread,
Mar 21, 2005, 4:19:04 PM3/21/05
to
Geoff Welsh <geoff...@some.rr.com> writes:

> While SSH'd from my home directory on my machine to my home
> directory on another machine.....how to I "get" (like ftp) a file
> from there to here?

Either sftp or scp.

(Sftp should not be confused with the regular FTP protocol running
over SSL/TLS.)

--
David Magda <dmagda at ee.ryerson.ca>, http://www.magda.ca/
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI

Shawn Hearn

unread,
Mar 21, 2005, 11:17:02 PM3/21/05
to
In article <WJD%d.44202$VD5....@twister.socal.rr.com>,
Geoff Welsh <geoff...@some.rr.com> wrote:

Use sftp. You could use scp instead, but I find sftp to be easier.

Geoff Welsh

unread,
Mar 21, 2005, 11:21:21 PM3/21/05
to
David Magda wrote:

> Geoff Welsh <geoff...@some.rr.com> writes:
>
>
>>While SSH'd from my home directory on my machine to my home
>>directory on another machine.....how to I "get" (like ftp) a file
>>from there to here?
>
>
> Either sftp or scp.
>
> (Sftp should not be confused with the regular FTP protocol running
> over SSL/TLS.)
>

Sorry I wasn't specific enough in my question.
Given that I can transfer a file from my User/me folder to my friends
(remote) machine by typing:
scp file.xxx myuse...@thatmachine.something.net:file.xxx

and that I can SSH to that remote machine by typing:
ssh myuse...@thatmachine.something.net

Does anyone have an idea what I would type to get something from there
back to here?

My Unix knowledge is basicly one small cheat sheet with very specific cases.

GW

Message has been deleted

Bob Harris

unread,
Mar 22, 2005, 8:02:39 AM3/22/05
to
In article <53N%d.53297$xX3....@twister.socal.rr.com>,
Geoff Welsh <geoff...@some.rr.com> wrote:

scp myuse...@thatmachine.something.net:file.xxx file.xxx

or

sftp thatmachine.something.net
Username: myusername
Password: xxxxxx
sftp> get file.xxx
sftp> bye

Bob Harris

Geoff Welsh

unread,
Mar 23, 2005, 1:24:56 AM3/23/05
to
Bob Harris wrote:

>>Does anyone have an idea what I would type to get something from there
>>back to here?

>>GW
>
> scp myuse...@thatmachine.something.net:file.xxx file.xxx
>
> or
>
> sftp thatmachine.something.net
> Username: myusername
> Password: xxxxxx
> sftp> get file.xxx
> sftp> bye
>
> Bob Harris

That's the ticket!!!!
Although I had to modify the sftp line to include "me@that..." both
methods work nicely. Thank you very much.
GW

Geoff Welsh

unread,
Mar 23, 2005, 1:27:38 AM3/23/05
to
jes....@hexduxhmp.org wrote:

>> Geoff Welsh <geoff...@some.rr.com> wrote:
>> My Unix knowledge is basicly one small cheat sheet with very specific cases.
>

> Does your small cheat sheet contain the command 'man'? :)

No but it has "dude".....(lol...sorry)
Ah yes, I have "man - gets the manual for an application"

GW

0 new messages