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

Page 106

Advertising
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

<path to download>\<filename>

You do not need to specify the user name and password

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

<path to download>\<filename> -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 <certificate

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

-o <filename>

You do not need to specify the user name and password

curl --ftp-ssl-reqd --cacert <certificate

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

-o <filename> -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 <filename> ftp://IP_address/ -u

USER:PASSWORD

You do not need to specify the domain

curl -T <filename> ftp://IP_address/ -u

DOMAIN\\USER:PASSWORD

You must specify the domain

106 Using FTP

Advertising