United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
Release Found: Red Hat Enterprise Linux 5
Solution:
In this example, assume that ftp server's IP address is 10.66.0.92, and the username testuser with password testpasswd has been created on ftp server. . The file in this example that needs to be uploaded is uploadfile.tar.gz, located in current directory.
open 10.66.0.92
user testuser testpasswd
binary
put uploadfile.tar.gz
$ftp -inv < ftpscriptfile
Connected to 10.66.0.92.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
331 Please specify the password.
230 Login successful.
200 Switching to Binary mode.
local: uploadfile.tar.gz remote: uploadfile.tar.gz
227 Entering Passive Mode (10,66,0,92,213,132)
150 Ok to send data.
226 File receive OK.
191 bytes sent in 6.1e-05 seconds (3.1e+03 Kbytes/s)
221 Goodbye.
The file uploadfile.tar.gz has been uploaded.