Pengen Punya WebSite instan kualitas intan ?

Monday, February 21, 2011

Remote Login SSH tanpa password

Pertama, Generate key pada client,

prayoga@prayoga-desktop:~/.ssh$ ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (/home/prayoga/.ssh/id_rsa): /home/prayoga/.ssh/id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/prayoga/.ssh/id_rsa.
Your public key has been saved in /home/prayoga/.ssh/id_rsa.pub.
The key fingerprint is:
18:65:c3:ef:b3:0f:14:ea:7c:30:71:23:44:61:47:e5 prayoga@prayoga-desktop
The key's randomart image is:
+--[ RSA 2048]----+
|       oOoo..    |
|       =.o .     |
|      . o.+ E    |
|       o =.o     |
|      . S..      |
|       o +o      |
|        o oo     |
|         ...     |
|           ..    |
+-----------------+

Kedua, simpan file /home/prayoga/.ssh/id_rsa.pub pada server tujuan.

prayoga@prayoga-desktop:~/.ssh$ scp id_rsa.pub stylekit@stylekita.com:.ssh/authorized_keys

Selesai.....
tinggal testing aja :D

0 comments:

Post a Comment