beautypg.com

Ftp and ftps commands for non-anonymous shares – HP StoreAll Storage User Manual

Page 106

background image

Table 3 Download a file by using the FTP protocol

Command

Use this command when...

curl ftp://IP_address/pub/server.pem -o

\

You do not need to specify the user name and password

curl ftp://IP_address/pub/server.pem -o

\ -u ftp:ftp

You must provide the default user name and password
(“ftp” for the username and “ftp” for the password)

Table 4 Download a file by using the FTPS protocol

Command

Use this command when...

curl --ftp-ssl-reqd --cacert

file> ftp://IP_address:990/pub/

-o

You do not need to specify the user name and password

curl --ftp-ssl-reqd --cacert

file> ftp://IP_address:990/pub/

-o -u ftp:ftp

You must provide the default user name and password
(“ftp” for the username and “ftp” for the password)

The following example shows a web browser accessing an anonymous share.

FTP and FTPS commands for non-anonymous shares

This section provides the following FTP and FTPS commands for non-anonymous shares. All
commands should be entered on one line.

Table 5 Upload a file by using the FTP protocol for domain user

Command

Use this command when...

curl -T ftp://IP_address/ -u

USER:PASSWORD

You do not need to specify the domain

curl -T ftp://IP_address/ -u

DOMAIN\\USER:PASSWORD

You must specify the domain

106 Using FTP