D
D
drqqv2021-12-21 21:38:12
linux
drqqv, 2021-12-21 21:38:12

How to transfer file to server via ssh?

scp -C -i ./id_rsa -r /var/www/* [email protected]:/var/www I use this method to transfer files. id_rsa specified correctly, login, address too, file location is also correct. The terminal asks for passphrase for key, I enter it. In response, it gives: Permission denied

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-12-21
@karabanov

The terminal asks for passphrase for key, I enter it.

So you're entering it wrong. This is the password for the key, not the password for the account.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question