On Thursday 11 June 2009 05:15:07 Bonnie Kurniawan wrote:
> Mohon maaf mohon pencerahan tentang SSH yg menggunakan Public Key ? gimana
> untuk masuk ke server tersebut ?

Cara masuknya, langsung ketik:
        ssh ip-address-server-tujuan
maka kita langsung masuk ke server tersebut tanpa perlu mengetik password.

Berikut salah satu contoh cara membuatnya, aku copy paste dari sini:
http://lqman.wordpress.com/2008/08/29/ssh-tanpa-password/

Langkah-langkahnya adalah sbb :

   1. Generate public/private rsa key pair

      lq...@constantine:~$ ssh-keygen
      Generating public/private rsa key pair.
      Enter file in which to save the key (/home/lqman/.ssh/id_rsa):
      Created directory '/home/lqman/.ssh'.
      Enter passphrase (empty for no passphrase):
      Enter same passphrase again:
      Your identification has been saved in /home/lqman/.ssh/id_rsa.
      Your public key has been saved in /home/lqman/.ssh/id_rsa.pub.
      The key fingerprint is:
      bf:bc:af:19:15:65:f7:3e:81:78:ee:8b:b2:3e:e5:90 lq...@constantine
   2. Copy-kan private key yg telah dibuat ke masing2 komputer yang akan kita 
lakukan ssh tanpa password

      lq...@constantine:~$ ssh-copy-id -i .ssh/id_rsa.pub 
[email protected]
      The authenticity of host 'server.metindo.com (10.11.12.254)' can't be 
established.
      RSA key fingerprint is 09:56:5d:a2:ed:15:0b:44:5b:c7:b4:7d:d7:08:48:bd.
      Are you sure you want to continue connecting (yes/no)? yes
      Warning: Permanently added 'server.metindo.com,10.11.12.254' (RSA) to 
the list of known hosts.
      [email protected]'s password:

      Sampai disini anda harus memasukkan password [email protected] 
lalu tekan ENTER, maka akan muncul tulisan spt dibawah ini :

      Now try logging into the machine, with "ssh '[email protected]'", 
and check in:

      .ssh/authorized_keys

      to make sure we haven’t added extra keys that you weren’t expecting.
   3. Lakukan testing

      lq...@constantine:~$ ssh [email protected]
      Linux server 2.6.24-1-486 #1 Thu May 8 01:29:10 UTC 2008 i686

      The programs included with the Debian GNU/Linux system are free 
software;
      the exact distribution terms for each program are described in the
      individual files in /usr/share/doc/*/copyright.

      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
      permitted by applicable law.
      Last login: Fri Aug 29 18:35:57 2008 from operator.metindo.com
      lq...@server:~$

      apabila sudah muncul tulisan diatas (lq...@server:~$) , berarti anda 
sukses melakukan ssh tanpa password (hanya dengan menggunakan private key).

      Happy Hacking bro…
_______________________________________________
milis mailing list
[email protected]
http://lists.opensuse-id.org/listinfo.cgi/milis-opensuse-id.org

Kirim email ke