R
R
Ruslan Absalyamov2018-04-20 14:17:47
SSH
Ruslan Absalyamov, 2018-04-20 14:17:47

The question is how can I upload a file from a remote host to a localhost?

I have a file on a remote host, I dumped the database, it is archived in my tar.gz and now I need to get it to the local, but I don’t know how to do it, the scp command tried, maybe I’m doing it wrong, but I can’t do it get. Worked via openvpn and no password was required for the remote host.
there is a dump.tar.gz file on the remote host. Should
I do this command scp [email protected]_host:dumo.tar.gz /home/bitrix/ from the remote host
or should I still do this command on the local computer?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Mirilaczvili, 2018-04-20
@2ord

Run on local computer. You need to authenticate with an SSH key or just a password.
scp [email protected]_host:/path/to/dumo.tar.gz /home/bitrix/

I
Igor Vorotnev, 2018-04-20
@HeadOnFire

To download a file from a remote host to a local host, execute from the local:
Where,
[email protected]- the remote host and the user on it
:/file/to/send- the absolute path to the desired file on the remote host
/where/to/put- the absolute path to the target folder on the local host

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question