Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 06-09-2008, 04:25 PM   #1
LQ Newbie
Registered: Jun 2008
Distribution: Ubuntu (Fluxbox)
Posts: 28

Rep: Reputation: 16
scp from remote machine

Hey people i had some trouble earlier, i wanted to get some files that is on another machine on our university network. So i used ssh to get to this machine, but i didnt know how to use scp to get the file from that computer to mine, i know how to use scp to get files onto that computer. I tried like scp filename my_ip:///filename but then i got a connection lost error. So then i started firestarter and tried 2 scp again but and firestarter wasnt blocking it. Well then i just emailed me the file from the remote computer but i still wanna know how to scp to my computer from a remote machine. Thanks
Old 06-09-2008, 05:15 PM   #2
Registered: May 2008
Location: Iceland
Distribution: Ubuntu Hardy
Posts: 47

Rep: Reputation: 16
Old 06-09-2008, 05:17 PM   #3
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
1. 'sftp' often runs and you can use that

2. it's weird doing ssh to a remote, then using that session to transfer a file to your local machine via scp. You should just run scp from the local machine to copy the remote (unless of course you're not sure of the filename beforehand, in which case sftp is more convenient if available).

3. If you read the scp manual you will see you can do things like:
scp my_local_file my_remote_user_name@some.url:the/remote/directory/and/my_local_file

If you have a '/' after the ':' you need the full path name; otherwise the directories are taken to be in whatever the HOME is for the remote.
Old 06-09-2008, 05:39 PM   #4
LQ Newbie
Registered: Jun 2008
Distribution: Ubuntu (Fluxbox)
Posts: 28

Original Poster
Rep: Reputation: 16
Thank u very much, i got i right with scp with the scp user@blala:file ./ and sftp also worked.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCP: Copy file from remote linux server onto a windows machine? Tony Empire Linux - Newbie 21 09-22-2015 10:18 PM
SCP from remote to local?? abovenbeyond Linux - Newbie 1 06-04-2008 04:45 PM
mounting samba filesystem on remote machine as /home on local machine shishirkotkar Linux - Software 1 04-28-2008 05:05 AM
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 12:23 PM
Complicated one: MySQL, rsync, remote machine, local machine daiver Linux - General 2 02-27-2006 12:14 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration