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? |
Here is a page that'll help you with you're question.
http://www.die.net/doc/linux/man/man1/scp.1.html |
scp local_file.txt YOUR_USERNAME@192.168.2.102:/folder/subfolder
|
Quote:
|
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.
|
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 |
No, sftp has an interface similar to a standard command line ftp client:
Code:
sftp user@192.168.1.1 --Ian |
All times are GMT -5. The time now is 11:27 AM. |