> For the complete documentation index, see [llms.txt](https://www.netexec.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.netexec.wiki/ftp-protocol/authentication.md).

# Authentication

## Anonymous Login

```bash
nxc ftp 192.168.0.10 -u '' -p ''
FTP         192.168.0.10   21     192.168.0.10    [*] Banner: (vsFTPd 3.0.5)
FTP         192.168.0.10   21     192.168.0.10    [+] : - Anonymous Login!
```

## Testing Credentials

```bash
nxc ftp 192.168.0.10 -u 'marshall' -p 'badpassword'
FTP         192.168.0.10   21     192.168.0.10    [*] Banner: (vsFTPd 3.0.5)
FTP         192.168.0.10   21     192.168.0.10    [+] marshall:badpassword
```

## Specify Port

```bash
nxc ftp 192.168.0.10 -u 'marshall' -p 'badpassword' --port 2121
FTP         192.168.0.10   2121   192.168.0.10    [*] Banner: (vsFTPd 3.0.5)
FTP         192.168.0.10   2121   192.168.0.10    [+] marshall:badpassword
```
