The issue here is starting the ssh
session first. So when you are running scp
it's executing on the destination machine. It's interpreting d:\test.txt
in the same way it interprets 162.246.22.217:/var/www/html
- It thinks the d
bit before the colon is the machine name. You can see that because it asks for root@d's password
What you need to do is:
- run it on the Windows machine, without first starting
ssh
- Arrange it so you don't need to specify the drive letter
D:
because of how scp
interprets that colon.
Try this from your Windows command shell:
pushd d:\
scp -r \kbt root@IP:/var/www/html/
The pushd
puts the current working directory on the right Windows drive so you can just use the path from the root of that drive, without needing the colon.
Once the scp
command above has completed, you can use the ssh
command to check that they're there where they should be.
I'd be a bit concerned about 69 failed login attempts. Unless you know it was you.
Edit: some older versions of Windows don't include scp
- You can use pscp
from Putty very similarly.