Ubuntu: How to Transfer a zip file into ubuntu server?


I have d:/upload/jboss-eap-6.2.0.zip

This file need to uploaded into Ubuntu server

I tried with following command

scp d:/upload/jboss-eap-6.2.0.zip ubuntu@ip-10-47-175-216:/home/ubuntu  


It sounds like you've sshed in to the remote computer and you're trying to scp from a local file. That won't work. The remote shell session has no concept of your local filesystem.

You need to push the file from something running in Windows. WinSCP is a good client. You feed it your SSH details and it'll give you decent enough file access on the remote server. Or you can use a SFTP (like Filezilla) client, again working over SSH.


In windows machine open cmd :

 set PATH=C:\Program Files\PuTTY  

Then from cmd also try this command:

pscp d:/upload/jboss-eap-6.2.0.zip  ubuntu@your-ip:/home/ubuntu/  

Your ip like :


Here the solution:

create one folder as "putty" in program files folder, and download and paste the 'putty and pscp' exe file in to putty folder

then set the path from windows cmd : set PATH=C:\Program Files\putty;%PATH%

then in cmd> pscp -i d:/key/xxx.ppk d:/upload/jboss-eap-6.2.0.zip ubuntu@xxxxx.amazonaws.com:/home/ubuntu

-i is Private key for Authentication .ppk - generated from Puttygen (from .pem file)

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »