Hi friends, In this post I am going to explain how to upload your large files / database files to server using terminal with the help of commands SCP or SSH.

Upload files to server using scp or ssh by Anil Kumar Panigrahi
Basic command for uploading files
scp -P [PORT NUMBER] [PATH OF YOUR LOCAL FILE] [USERNAME]@[HOST]:[DESTINATION PATH]
Here
[PORT NUMBER] : The default port number is 22. We can specify other than that also.
[PATH OF YOUR LOCAL FILE] : Your source file ( From which location you need to upload files). i.e. your local system path.
[USERNAME] : Your server’s username from which name you are accessing the server
[HOST] : Your server’s IP address or domain name to access the server
[DESTINATION PATH] : To which location your files needs to upload.
Eg:
scp -P 225 /home/anillabs/Desktop/testdb.sql [email protected]:/www/phpproject/db/
It is only for example.





Very useful post. Thanks for sharing such a nice information!!!!