HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Centos FTP from command line (http://www.howtoforge.com/forums/showthread.php?t=47957)

Polk 14th August 2010 03:20

Centos FTP from command line
 
Hi,

How can I upload 1 file into FTP of a different server via command line?
Is this possible?

For example, I have a file /root/file.tar.gz
From Command line, I need to connect to some other server via FTP and authentication, and upload this file.tar.gz to there.

Similar as we download using wget, but I need to upload.

Thanks.

falko 14th August 2010 17:04

You could do this with scp (more secure than FTP).

Code:

scp /path/to/file user@server1.example.com:/path/to/directory

Polk 15th August 2010 01:48

Is scp connecting to FTP protocol? Where do I enter password?
I tried the command, but it just sits there and not doing anything.

falko 15th August 2010 19:11

It uses SSH, so make sure SSH is running on the remote server (on port 22), and that the user is allowed to log in using SSH.


All times are GMT +2. The time now is 17:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.