Difference between revisions of "Persiapan SSH untuk SCP Batch"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Agar SSH dapat dilakukan tanpa perlu memasukan password | + | Agar [[SSH]] dapat dilakukan tanpa perlu memasukan [[password]] |
− | sehingga dapat memudahkan proses scp secara batch kita perlu melakukan hal berikut. | + | sehingga dapat memudahkan proses [[scp]] secara batch kita perlu melakukan hal berikut. |
Line 32: | Line 32: | ||
$ scp /home/user/.ssh/id_dsa.pub 'user@machine:~/.ssh/authorized_keys' | $ scp /home/user/.ssh/id_dsa.pub 'user@machine:~/.ssh/authorized_keys' | ||
− | Jika nomor Port SSH yang digunakan tidak standard, dapat menggunakan perintah | + | Jika nomor Port [[SSH]] yang digunakan tidak standard, dapat menggunakan perintah |
$ scp -P port /home/user/.ssh/id_dsa.pub 'user@machine:~/.ssh/authorized_keys' | $ scp -P port /home/user/.ssh/id_dsa.pub 'user@machine:~/.ssh/authorized_keys' | ||
Line 43: | Line 43: | ||
* [[Instalasi dan Konfigurasi rsync]] | * [[Instalasi dan Konfigurasi rsync]] | ||
* [[Linux Howto]] | * [[Linux Howto]] | ||
+ | * [[ssh]] | ||
+ | * [[ssh - automatic login]] |
Latest revision as of 06:58, 3 December 2011
Agar SSH dapat dilakukan tanpa perlu memasukan password sehingga dapat memudahkan proses scp secara batch kita perlu melakukan hal berikut.
Mesin Server
Install SSH Server
# apt-get install openssh-server
Restart SSH Server
# /etc/init.d/ssh restart
Mesin Client
$ ssh-keygen -t dsa <ENTER> <ENTER> <ENTER> /home/user/.ssh/id_dsa.pub
$ chmod 600 /home/user/.ssh/id_dsa.pub
Copykan ke mesin server, masukan ke folder .ssh file authorized_keys
$ scp /home/user/.ssh/id_dsa.pub 'user@machine:~/.ssh/authorized_keys'
Jika nomor Port SSH yang digunakan tidak standard, dapat menggunakan perintah
$ scp -P port /home/user/.ssh/id_dsa.pub 'user@machine:~/.ssh/authorized_keys'