Answer the question
In order to leave comments, you need to log in
How to download a file to a computer via ssh?
As I understand it, there is a command for downloading
scp /home/catalog/name_fail.tar.gz [email protected]:./Yandex.Disk
Answer the question
In order to leave comments, you need to log in
scp [откуда] [куда]
you copied the file /home/catalog/name_fail.tar.gz from the machine where you are doing scp to the machine [email protected] to the directory ./Yandex.Disk
If you lost the file on the receiving machine, then yes, it will be in "home/user/Yandex.Disk"
But your user is root. ([email protected])
And for root, the home directory is usually "/root"
instead of:
./Yandex.Disk you
should write:
~/Yandex.Disk
then the file will be downloaded to your home directory (/root)
If you are afraid of scp, then you can
tar -cf - /file | ssh hostname tar -xf -C /test
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question