ftp

Enables File Transfer Protocol (FTP) on this management policy. FTP is the standard protocol for transferring files over a TCP/IP network. FTP requires administrators enter a valid username and password authenticated locally. FTP access is disabled by default.

Supported on the following devices:

Syntax

ftp {password|rootdir|username}
ftp {password [1 <ENCRYPTED-PASSWORD>|<PASSWORD>]}
ftp {rootdir <DIR>}
ftp {username <USERNAME> password [1 <ENCRYPTED-PASSWORD>|<PASSWORD>] rootdir <DIR>}

Parameters

ftp {password [1 <ENCRYPTED-PASSWORD>|<PASSWORD>]}
ftp password Optional. Configures the FTP server password
1 <ENCRYPTED- PASSWORD> Configures an encrypted password. Use this option when copy pasting the password from another device.
  • <ENCRYPTED-PASSWORD> – Specify the password. The password should not exceed 63 characters in length.
<PASSWORD> Configures a clear text password
ftp {rootdir <DIR>}
ftp rootdir <DIR> Optional. Configures the root directory for FTP logins
  • <DIR> – Specify the root directory path. By default the root directory is set to flash:/
ftp {username <USERNAME> password [1 <ENCRYPTED-PASSWORD>|<PASSWORD>] rootdir <DIR>}
ftp username <USERNAME> Optional. Configures a new user account on the FTP server. The FTP user file lists users with FTP server access.
  • <USERNAME> – Specify the username. The username should not exceed 32 characters in length.
password [1 <ENCRYPTED-PASSWORD>|<PASSWORD>] Configures an encrypted password
  • 1 <ENCRYPTED-PASSWORD> – Specifies an encrypted password (use this option if copy pasting from another device). The password should not exceed 63 characters in length.
  • <PASSWORD> - Configures a clear text password
rootdir <DIR> After specifying the password, configure the FTP root directory.
  • rootdir <DIR> – Configures the root directory for FTP logins. Specify the root directory path.

Usage Guidelines

The string size of an encrypted password (option 1, password is encrypted with a SHA1 algorithm) must be exactly 40 characters. Copy paste the encrypted password here.

Examples

nx9500-6C8809(config-management-policy-test)#ftp username superuser password test@123 rootdir dir
nx9500-6C8809(config-management-policy-test)#show context
management-policy test
 http server
 ftp username superuser password 1 f617ca50c59fb47028f96db4baab5f3d8f03c03ab257960b0fd127c69f02cd7e rootdir dir
 no ssh
 aaa-login radius external
 aaa-login radius policy test
 banner motd "Have a Good Day"
nx9500-6C8809(config-management-policy-test)#

Related Commands

no Disables FTP and its settings, such as the server password, root directory, and users