shopify analytics ecommerce

File transfer via SSH

When sending files between two hosts, with the ftp command is very convenient, but another more secure approach is through SSH to transfer, and use very simple, as long as you can use scp command.

If you want to lower / home / samtang / directory files for all .php file extension, sent to host in / var / www / Now, login name is user1, you can enter:

scp /home/samtang/*.php [email protected]: / var / www /

Then the system will ask you to connect your password, enter the correct password, you can send, but of course, used to transfer the account has lawful authority to write data required at the remote directory.

Leave a Reply