Copy file antar 2 host

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
andhy_bhastenk
Posts: 9
Joined: 09 Mar 2012, 12:39
Location: Samarinda
Contact:

Copy file antar 2 host

Postby andhy_bhastenk » 12 Mar 2012, 13:40

Help me para master linux, perintah copy folder antar 2 host, perintah nya gmn y?
sy mau ngopi file dari host sy dengan perintah, scp -r /var/www/html/.../ root@....:/home/
tapi koq blm berhasil y..
please help me
User avatar
abu_unaisah
Posts: 1621
Joined: 24 Nov 2011, 14:07

Re: Copy file antar 2 host

Postby abu_unaisah » 12 Mar 2012, 13:44

hasilnya apa?
scp -r -v /var/www/html root@no_ip:/home
User avatar
andhy_bhastenk
Posts: 9
Joined: 09 Mar 2012, 12:39
Location: Samarinda
Contact:

Re: Copy file antar 2 host

Postby andhy_bhastenk » 12 Mar 2012, 14:01

itu hasilnya gan? salah y.. :)
Attachments
Screenshot-1.png
Screenshot-1.png (98.04 KiB) Viewed 232 times
User avatar
abu_unaisah
Posts: 1621
Joined: 24 Nov 2011, 14:07

Re: Copy file antar 2 host

Postby abu_unaisah » 12 Mar 2012, 14:10

filenya ndak ada gan,

coba cp dari folder /var/www/html
User avatar
andhy_bhastenk
Posts: 9
Joined: 09 Mar 2012, 12:39
Location: Samarinda
Contact:

Re: Copy file antar 2 host

Postby andhy_bhastenk » 12 Mar 2012, 14:51

gan, sy harus ssh dl ke komp yg mau di remote (asal file) atau gmn gan?
sorry newbie ni
User avatar
abu_unaisah
Posts: 1621
Joined: 24 Nov 2011, 14:07

Re: Copy file antar 2 host

Postby abu_unaisah » 12 Mar 2012, 14:53

walah...

iya harus ssh dulu ke pc yg mau di remote (install openssh-server kalo belom install)
trus lakukan scp
User avatar
andhy_bhastenk
Posts: 9
Joined: 09 Mar 2012, 12:39
Location: Samarinda
Contact:

Re: Copy file antar 2 host

Postby andhy_bhastenk » 12 Mar 2012, 14:58

tadi sdh di coba gitu gan, tapi koq tdk tercopy ke home sy y, malah tercopy di comp yg di remote itu sendiri, apa destinationnya salah y
Attachments
Screenshot-1.png
Screenshot-1.png (41.24 KiB) Viewed 217 times
User avatar
andhy_bhastenk
Posts: 9
Joined: 09 Mar 2012, 12:39
Location: Samarinda
Contact:

Re: Copy file antar 2 host

Postby andhy_bhastenk » 12 Mar 2012, 15:03

Alhamdulillah, akhirnya ketemu gan.. thanks y masukannya..
Go Freedom.....
User avatar
abu_unaisah
Posts: 1621
Joined: 24 Nov 2011, 14:07

Re: Copy file antar 2 host

Postby abu_unaisah » 12 Mar 2012, 15:07

misal:
/var/www/html di 192.168.10.100
/home di 192.168.10.111

scp -r /var/www/html root@192.168.10.111:/home

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: No registered users and 3 guests