Tuesday, December 13, 2011

How to put file to some ftp location

First copy the file you need scp to your folder(Here in this example its /Desktop/issue)
Then connect to Ftp server using following command.
sanjeewa@sanjeewa-TECRA-M11:~/Desktop/issue$ sftp username@ftp.test.com
Then enter your password
username@ftp.test.com's password:
Connected to ftp.test.com.
You can view the content of ftp location by following command.
sftp> ls
WSO0.1-0008.zip          WSO2-CARBON-PATCH-3.0.1-0013.zip     file1.zip        file2.zip      
Then copy your file using put command as follows.
sftp> put axis2-1.6.1.tar.gz
Note that  axis2-1.6.1.tar.gz file should be located at your machine /Desktop/issue
folder.

No comments:

Post a Comment