I'm trying to move a file from the server to my windows machine using cmd, first try:
scp username@lux.technion.ac.il:/home/username/Human_hg19_chr13/Alignment_calls.vcf C:\Users\FF\Desktop\cyberduck
The output: ssh: Could not resolve hostname c: Name or service not known
lost connection Connection to lux.technion.ac.il closed.
trying again:
scp username@lux.technion.ac.il:/home/username/Human_hg19_chr13/Alignment_calls.vcf C:\Users\FF\Desktop\cyberduck .
The output:
Alignment_calls.vcf
100% 964KB 45.9MB/s 00:00
ssh: Could not resolve hostname c: Name or service not known
Which means it almost worked but something went wrong at the end, I'm not sure is it my code?
C:\Users...
is the host definition -user@host:/path
. However in the second case you have.
at the end, so the file most likely was copied to the current directory. – mestia Jan 14 '22 at 22:06scp
uses a remote locatoin asuser@server:/path/to/file
orserver:/path/to/file
. Now if you have a path calledC:\path\to\file
,scp
will thinkC
is a server - it cannot find a server namedC
. Also I am confused: What environment are you using with the target being a windows-style path? – FelixJN Jan 14 '22 at 22:36