> 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/ssh-protocol/get-and-put-files.md).

# Get and Put Files

## Send a File to the Remote Target

Send a local file to the remote target

```bash
nxc ssh 172.16.251.152 -u user -p pass --put-file file.txt /tmp/file.txt
```

## Get a File From the Remote Target

Get a remote file on the remote target

```bash
nxc ssh 172.16.251.152 -u user -p pass --get-file /tmp/file.txt file.txt
```
