Hard to Resolve :- "SCP copies files successfully, but files not visible in local computer" [closed]
I was facing the same problem. The error I was making was that I was running the SCP command on the remote server instead you need to run it on your local.
When you run the command on the server it shows a similar interface of the file being downloaded, that is why some people might be missing it.
We cannot say "what is wrong with you" (your words), but there are a number of things you might want to check:
- is that folder you copied (or the files) hidden? So does their name start with a dot (
.somefile
)? - when "looking for the local files", do you use a file manager? Then you should try to refresh the view.
- when using a graphical file manager, are their any filters set that might hide some files?
- what does this command output:
ls -al /dest/local/path
? - what type of resource is
/dest/local/path
? Is that an ordinary folder inside a locally mounted partition or something else? - for the real paranoid amongst us: what
scp
command is that? Which path, what package does it belong to? You checked that? - what happens if you try to transfer the files using exactly the same commands? Any warning about files getting overwritten?
And finally: you tried adding the -v
flag (verbose mode) to get additional information during the transfer?
Initially I had a problem trying to SCP a file that was owned by root.So I tried to specify root as the user for both sides of the SCP command;
scp root@192.168.0.201:/usr/share/bob.txt root@localhost:/usr/share
But this didn't work.
It says it works - it provides a progress bar etc - but the file is simply not in the destination directory.
I do not know WHY - but providing an IP address, instead of the LOCALHOST designation as a destination - sees the file copied successfully.
scp root@192.168.0.201:/usr/share/bob.txt root@192.168.0.202:/usr/share