R
R
romankulish52019-03-01 19:05:18
SFTP
romankulish5, 2019-03-01 19:05:18

How to securely transfer files from one Windows server to another?

Good day!
Please guide me to the right path. I'm trying to transfer files from one Windows server to another, securely. I'm trying to do this using SCP, generated keys on one server, threw a public key on another in the C:\users\Administrator\.ssh\ folder, authorized_keys file. I try to connect from the first one using the command:
scp -i PATH_TO_PRIVATE_KEY -r Path_to_folder(which I want to copy) [email protected]_name:Path_to_folder(where I want to copy), but it still asks for a password.
via ssh with a password comes in, but not by the key either. Even when I specify the path to the file, I still ask for a password.
I believe that with sftp there will be the same trouble. Tell me what I'm doing wrong.
there is of course an option to raise the VPN and configure SMB, but I would like to do without it.
Thanks in advance for the replies.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
yayashitoya, 2019-03-01
@yayashitoya

syncthing

R
rPman, 2019-03-01
@rPman

Specifically, in your case, it depends on what kind of scp you are using. For example ssh from cygwin environment expects your keys to be in C:\cygwin\home\user_name\.ssh\...
putty looks for files in its own directory
you can force the location of your files in environment variables, command line or config file

C
CHolfield, 2019-03-01
@CHolfield

Log in to both servers via RDP, on the source Ctrl+C, on the recipient Ctrl+V

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question