Upload files to server using SCP / SSH

in Articles, OS, Ubuntu / 1 Comment

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

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 root@0.0.0.0:/www/phpproject/db/

It is only for example.

PHP Web developer with 6 years of experience in Web Development, Integrating web designing, Testing and Deployment , and developed medium level to large scale websites using PHP , and as blogger maintaining technical blog Contact : php.anil@gmail.com

Discussion 1 Comment