LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2011, 01:37 PM   #16
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,195
Blog Entries: 1

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327

so we know the connection is ok there must be some sort of fire wall on macbook
 
Old 12-29-2011, 01:45 PM   #17
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,195
Blog Entries: 1

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Have a look here www.macinstruct.com/node/165
 
Old 12-29-2011, 08:15 PM   #18
tallship
Member
 
Registered: Jul 2003
Location: On the Beaches of Super Sunny Southern San Clemente, California USA
Distribution: Slackware - duh!
Posts: 530
Blog Entries: 3

Rep: Reputation: 116Reputation: 116
Post

If you can:

Code:
$ ssh remotebox.sld.tld -p5699
then you should be able to copy a file from your local machine to the remote machine by:

Code:
scp -P5699 file.txt remotebox.sld.tld:file.txt
and you should be able to copy a file from your remote machine to your local machine by:

Code:
scp -P5699 remotebox.sld.tld:file.txt .
Things to note are:

  • You are copying the file or logging in as the same username on both systems and if not, then append remotebox.sld.tld with "joeuser@" (if your remote username is 'joeuser'.
  • You want to copy from your current working directory to the user's home directory (~/) on the remote box or from the home directory on the remotebox to your current directory on your local machine (.).

If the username is different on the remote machine from what the username is that you are logged in as on the local machine, then:

Code:
scp -P5699 file.txt joeuser@remotebox.sld.tld:/home/joeuser/stuff/file.txt
NOTE: In that last example, there must be a ~joeuser/stuff directory or the command will fail.

to copy from the remote box to the current working directory on your local machine:

Code:
scp -P5699 joeuser@remotebox.sld.tld:/home/joeuser/stuff/file.txt .
I hope that helps

Kindest regards,

.
 
Old 12-31-2011, 11:28 AM   #19
kyros
LQ Newbie
 
Registered: Dec 2011
Location: North America
Distribution: Ubuntu 11.04
Posts: 8

Original Poster
Rep: Reputation: Disabled
LOL....you guys are going to kill me. I ran scp from the server!

So when I when ran scp kyros@serverIPAddress:some.file .

that would copy some.file over itself.

I realized that I should be on the computer where I want the file copied to. LOL.

Thanks for your help though
 
Old 12-31-2011, 11:43 AM   #20
phil555
LQ Newbie
 
Registered: Dec 2011
Posts: 11

Rep: Reputation: 0
Don't fret, everybody makes mistakes LOL
 
  


Reply


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
[SOLVED] ssh scp key not working to ssh/scp without password rjo98 Linux - Newbie 9 08-22-2011 04:28 PM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
scp help akhil.mud Programming 6 04-14-2008 08:47 PM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 07:50 PM
What is SCP? radam Linux - Software 2 07-20-2004 07:07 PM


All times are GMT -5. The time now is 05:20 AM.

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