I’m running SSH and SFTP servers on windows client and I would like to copy some file from Windows to Linux host. I’d like to use scp command, but I’m unable to copy anything.
As an example I created file
test.txt in home folder of Windows machine.
And in Linux I use
scp -P port user@host:~/test.txt .
but I get
scp: Failed to open file ~/test.txt. message. I tried to connect to Windows machine via ssh and the connection is established correctly, only scp is not working. Do you have any ideas?
Edit: From debug info I found out that scp has successfully connected to Windows host, so I assume that I’m passing bad path.