Grey Hack

Grey Hack

Landshark Jul 23, 2024 @ 11:21pm
How to copy files from remote to local (scp)
I must be overthinking this.

I'm SSH into a remote computer. I'm in the folder /home/username/Config

There's a file in there called Bank.txt

I've tried:

scp -d Bank.txt
scp -d /home/username/Config/Bank.txt
scp -d username@hostname:/home/Weinha/Config/Bank.txt

Nothing seems to work. I'm struggling with a super basic command. :( Please help!

EDIT: Ok turns out it was working. It kept saying the file downloaded but was zero bytes in size. But when I check my local folder the files do show up.

Why was it showing zero bytes in size?
Last edited by Landshark; Jul 23, 2024 @ 11:50pm
< >
Showing 1-1 of 1 comments
112 - David L Jul 24, 2024 @ 2:33am 
try this terminal command

get /home/Weinha/Config/Bank.txt /home/'yourusername/Config/Bank.txt

Or

while SSHed into the target PC as root type FileExplorer.exe

on your PC open terminal then sudo into root (sudo -s then password)
then once in root type FileExplorer.exe and click drag from Target file explorer to your /home/username or another path of your choosing
< >
Showing 1-1 of 1 comments
Per page: 1530 50