Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-13-2006, 05:21 PM
|
#1
|
Member
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118
Rep:
|
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?
|
|
|
04-13-2006, 09:57 PM
|
#3
|
Member
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549
Rep:
|
scp local_file.txt YOUR_USERNAME@192.168.2.102:/folder/subfolder
|
|
|
04-14-2006, 12:11 AM
|
#4
|
Member
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118
Original Poster
Rep:
|
Quote:
Originally Posted by pk21
scp local_file.txt YOUR_USERNAME@192.168.2.102:/folder/subfolder
|
Thanks this is what I needed.
|
|
|
04-14-2006, 12:34 AM
|
#5
|
Member
Registered: Apr 2005
Posts: 131
Rep:
|
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.
|
|
|
04-15-2006, 01:27 AM
|
#6
|
Member
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118
Original Poster
Rep:
|
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.
|
|
|
04-15-2006, 03:52 AM
|
#7
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|