# How to copy files off a VM

**URL:** <https://community.fly.io/t/how-to-copy-files-off-a-vm/1651>\
**Category:** General\
**Created:** [June 4, 2021, 12:43am UTC](https://community.fly.io/t/how-to-copy-files-off-a-vm/1651 "2021-06-04T00:43:36Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![qqwy](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/qqwy/32/7475_2.png) [@qqwy](https://community.fly.io/u/qqwy)\
**Post date:** [May 8, 2022, 2:28pm UTC](https://community.fly.io/t/how-to-copy-files-off-a-vm/1651/7 "2022-05-08T14:28:11Z")

</div>

Instructions have become a lot simpler now that `fly proxy` exists.  
No need to muck about with wireguard any more:

```bash
# In a separate terminal:
fly proxy 10022:22
# In the main terminal:
scp -P 10022 root@localhost:/remote_path/to_file local_path/to_file 

```

---

_[View the full topic](https://community.fly.io/t/how-to-copy-files-off-a-vm/1651)._
