![]() |
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. |
You could do this with scp (more secure than FTP).
Code:
scp /path/to/file user@server1.example.com:/path/to/directory |
Is scp connecting to FTP protocol? Where do I enter password?
I tried the command, but it just sits there and not doing anything. |
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 19:11. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.