FTP


Connect

We can use the ftp command to connect to a remote host:

  • ftp <ip_address>
  • ftp [ftp://[USER[:PASSWORD]@]HOST[:PORT]/PATH[/][;type=TYPE]]

Default user

The default ftp user is the anonymous one. A password prompt can appear during the anonymous connection, but you can write any password you want, it doesn’t matter. anonymous:anonymous

Commands:

Once you’re connected to the machine, you can use help to see the FTP help page.

  • dir or ls: same as ls command.
  • put <local_file_oath> [remote_file_path]: Upload a file.
  • get <file_path> [local_file_path]: Download a file.
  • mdelete <file_path>: Delete file on the remote machine.
  • system: Show the type of system of the remote machine.
  • open <host> [port]: Open a new connection.
  • bye, quit, close: Close the connection.

mkdir, chmod, ls, cd, and rmdir are also FTP commands and have the same behavior has that one under Linux.