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



Question:

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  


Solution:1

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.


Solution:2

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 : 10.1.1.1


Solution:3

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
Previous
Next Post »