Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SCP command not working - need to copy file from Windows localhost to Linux

I need to copy file admin.zip from C:\wamp\www\jdhemumbai060714\webfiles (Windows) to /var/www/html/ (Linux). I am using following command::

scp C:\wamp\www\jdhemumbai060714\webfiles\admin.zip username@hostname:/var/www/html/

But it does not work and gives error::

ssh: Could not resolve hostname C: Temporary failure in name resolution

I am logged in Linux server using SSH

like image 453
D555 Avatar asked Sep 30 '22 01:09

D555


1 Answers

I think that it is bug in SCP port. Only way is skip "C:" and use only "\wamp\www\jdhemumbai060714\webfiles\admin.zip" It will work if current directory is on the same disk like file for upload. Or you can use pscp.exe

like image 66
ATom Avatar answered Oct 02 '22 15:10

ATom