V
V
Vladimir Mironov2015-06-03 02:41:22
linux
Vladimir Mironov, 2015-06-03 02:41:22

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

But where does she download? I understand that it will download to home/user/Yandex.Disk.
I enter this command, a line is shown, they say, 100% downloaded, but ... Where to? There is nothing in the folder. Nowhere. Generally!
And in general, is this command downloading or doing something else?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Igor, 2015-06-03
@merryjane

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

M
Maxim Moseychuk, 2015-06-03
@fshp

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"

S
Sergey, 2015-06-03
@begemot_sun

instead of:
./Yandex.Disk you
should write:
~/Yandex.Disk
then the file will be downloaded to your home directory (/root)

M
Maxim Kovalenko, 2015-06-11
@maxxx_kovalenko

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 question

Ask a Question

731 491 924 answers to any question