Hi All,
I am facing issue in coping files with scp from linux to windows through cygdrive. Please go through the below problem description.
When I try to copy files from Linux machine using below command, it says no such file or directory, while the file is exists at the location.
Code:
scp tmp.txt Yogesh@paravai:/cygdrive/c/temp
I tried to copy file using below command.
Code:
scp tmp.txt Yogesh@paravai:\cygdrive\c\temp
The files gets copied at my home directory with "cygdrivectemp" name. while expected result is file should gets copied at \cygdrive\c\temp with tmp.txt name.
Also when I am doing scp from cygwin file gets copied successfully.
Code:
scp root@hostname:/tmp/tmp.txt .
When I Google it I found that this might be because of git repository executables were used instead of cygwin. I have installed sshd on cygwin.
I know I can copy files with winscp but for some reason I have a requirement of cygwin and test few more things in cygwin.
Please help me to resolve this as I this is very urgent.
Thanks,
Yogesh