SCP copy file dari satu server ke server lain

SCP merupakan sebuah fasilitas untuk menyalin (copy) file dari satu komputer/host/server ke komputer/host/server lain. Berikut ini merupakan cara untuk meng-copy file dari 1 server misal dari Server_A ke Server_B, melalui komputer sendiri.
1. Login ssh k Server_B
a. #ssh username@ip_Server_B
b. tekan enter.
c. masukkan password
d. tekan enter.
2. Copy file yang ingin di copy ke Server_B
a. #scp username@ip_Server_A:/path_file_yang_ingin_di_copy path_folder_tujuan_di_Server_B/
b. tekan enter.
c. tunggu sampai selesai.

Nah dengan begini, dapat menghemat bandwith. Karena gak perlu download n upload dulu
😀

One thought on “SCP copy file dari satu server ke server lain”

  1. sure if you still need this, but try this.1st see if the .ssh directory exist with: ls -la ~If it does not exist, you will need to ctaere it with the following command: mkdir ~/.sshNow you will need to chmod it to 700. Use the following command: chmod 700 ~/.sshNow run the following to append the id_dsa.pub to authorized_keys2. Do this with the following command: cat /tmp/id_dsa.pub >> ~/.ssh/authorized_keys2

Leave a Reply

Your email address will not be published. Required fields are marked *

Blue Captcha Image
Refresh

*