> For the complete documentation index, see [llms.txt](https://leecybersec.gitbook.io/oscp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leecybersec.gitbook.io/oscp/scanning/common-services/ftp-service-port-21.md).

# FTP - 21

## Server Connection

* Check for anonymous access

```
$ ftp $ip $port
Connected to <ip>.
220 Microsoft FTP Service
Name (<ip>:<host>): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 User logged in.
Remote system type is Windows_NT.
ftp>
```

## FTP Common Commands

```
ftp> passive
Passive mode on.
ftp> binary
200 Type set to I.
ftp> ascii
200 Type set to A.
ftp> upload <file>
ftp> get <file>
ftp> quit
221 Goodbye.
```
