Could not load host key ssh

Kemaren install linux di vmware, seperti biasa saya selalu mengaktifkan ssh biar mempermudah. Jadi biasanya saya remote dari komputer host pake secureCRT ke vmware nya. Biar gampang aja sih kalo mau copy paste dari komputer host :p. Waktu mau jalanan SSH kok muncul error seperti ini.

Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
* Reloading OpenBSD Secure Shell server’s configuration sshd
…done.

Itu karena file ssh_host_rsa_key sama ssh_host_dsa_key yang isinya private key DSA dan RSA masih belum ada, biasanya sih udah langsung ada, gak pernah error gini. Solusinya sih tinggal di generate aja sih pake command:

sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
sudo ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

Buat lebih jelas silahkan liat manual ssh-keygen (man ssh-keygen). Kalo sudah tinggal restart ssh nya

/etc/init.d/ssh restart

Setelah itu penasaran juga gimana isinya file itu, iseng ngebuka isinya kayak gini

DSA Private key

RSA Private key

RSA dan DSA keluar di ujian kriptografi kemaren nih :D.

About these ads

One Response to Could not load host key ssh

  1. Pingback: Day 26 « 31 Hari MCS Menulis

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: