LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04: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, 04:30 PM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
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, 08: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-13-2006, 11:11 PM   #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-13-2006, 11:34 PM   #5
javaroast
Member
 
Registered: Apr 2005
Posts: 131

Rep: Reputation: 19
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, 12: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 12:38 AM.
 
Old 04-15-2006, 02:52 AM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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



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-28-2008 11:41 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
scp question mizuki26 Linux - Networking 1 01-03-2004 09:41 AM
Help with SCP lfindle Linux - Newbie 14 07-09-2002 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:47 PM.

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
Open Source Consulting | Domain Registration