LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-13-2006, 05:21 PM   #1
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Rep: Reputation: 15
How can I use scp


scp stands for secure copy, and is a tool from ssh, since I cant enable sftp because I dont have a ftp server. I want to do some file transfer with scp however the man doesnt include much syntax and examples.

So if I got a file on my computer that I want to copy to the server what will be the syntax?

scp local_file.txt 192.168.2.102/folder/subfolder

Is this correct, did I miss something?
 
Old 04-13-2006, 05:30 PM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 41
Here is a page that'll help you with you're question.

http://www.die.net/doc/linux/man/man1/scp.1.html
 
Old 04-13-2006, 09:57 PM   #3
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
scp local_file.txt YOUR_USERNAME@192.168.2.102:/folder/subfolder
 
Old 04-14-2006, 12:11 AM   #4
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pk21
scp local_file.txt YOUR_USERNAME@192.168.2.102:/folder/subfolder
Thanks this is what I needed.
 
Old 04-14-2006, 12:34 AM   #5
javaroast
Member
 
Registered: Apr 2005
Posts: 130

Rep: Reputation: 18
Also you don't need an FTP server for SFTP. All you need is SSH. So you should be able to connect with SFTP as well as SCP.
 
Old 04-15-2006, 01:27 AM   #6
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Original Poster
Rep: Reputation: 15
Interesting, i guess I kenw that but I wasnt aware of it. Gnome SFTP disk mount is exactly that. I will be able to work on this as soon as I get my system on again. Great stuff guys, thanks.

However can you give me a sample syntax on me using sftp, will it be the same of scp?

sftp local_file.txt USERNAME@192.168.1.xxx:/path/to/location

Last edited by Jzarecta; 04-15-2006 at 01:38 AM.
 
Old 04-15-2006, 03:52 AM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
No, sftp has an interface similar to a standard command line ftp client:
Code:
sftp user@192.168.1.1
cd /path/to/location
put local_file.txt
bye
SFTP is provided when you install ssh - no need for any other servers or ports to be opened (other than 22).

--Ian
 
  


Reply

Tags
file, ftp, scp, ssh, transfer


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 does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
SCP how to the_rhino Linux - Newbie 5 02-11-2005 08:50 PM
What is SCP? radam Linux - Software 2 07-20-2004 08:07 PM
scp question mizuki26 Linux - Networking 1 01-03-2004 10:41 AM
Help with SCP lfindle Linux - Newbie 14 07-09-2002 03:08 PM


All times are GMT -5. The time now is 01:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration