# Copying file from privileged pod to host running kubectl debug

**URL:** <https://discuss.kubernetes.io/t/copying-file-from-privileged-pod-to-host-running-kubectl-debug/19391>\
**Category:** General Discussions\
**Created:** [March 19, 2022, 10:55am UTC](https://discuss.kubernetes.io/t/copying-file-from-privileged-pod-to-host-running-kubectl-debug/19391 "2022-03-19T10:55:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmmk](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/kmmk/32/9710_2.png) [@kmmk](https://discuss.kubernetes.io/u/kmmk)\
**Post date:** [March 19, 2022, 10:55am UTC](https://discuss.kubernetes.io/t/copying-file-from-privileged-pod-to-host-running-kubectl-debug/19391/1 "2022-03-19T10:55:10Z")

</div>

I am using kubectl debug to run a pivileged pod in a remote cluster. I would like to copy a file from the privileged pod to my host (WSL from which kubectl debug was run). I would also like to copy files to the privileged pod. Is this possible with kubectl debug (see [Debug Running Pods | Kubernetes](https://kubernetes.io/docs/tasks/debug-application-cluster/debug-running-pod/#node-shell-session))?

Cluster is running Kubernetes version: v1.21.7
