Login
From:
Ian's notes
(Uncensored)
subscribe
Copying a file that requires sudo access from a remote host via SSH
https://ivdl.co.za/2025/02/19/copying-a-file-that-requires-sudo-access-from-a-remote-host-via-ssh/
links
backlinks
Tagged with:
linux
ssh
cat
sudo
copy
rsync
scp
Instead of copying (i.e. via scp or rsync), you can sudo cat the remote file, and pipe it (since pipes cross the SSH boundary) to a local file: For example: Happy copying!
Roast topics
Find topics
Find it!