Blog Untuk Semua

Everything for Everyone

OpenSSH: sshd won’t start !

Tinggalkan komentar

Have a problem with sshd ? your sshd daemon won’t start ? oke gonna fix now !

when I run sshd, a message appears:

# sshd
sshd re-exec requires execution with an absolute path

Try this:

# whereis sshd
sshd: /usr/sbin/sshd /usr/man/man8/sshd.8.gz /usr/share/man/man8/sshd.8.gz /usr/X11/man/man8/sshd.8.gz

Your sshd path at “/usr/sbin/sshd”, so type:

# /usr/sbin/sshd

if when running /usr/sbin/sshd appears a message like this:

# /usr/sbin/sshd
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

The problem because the host key doesn’t exist, you must re-generate, do the following ways:

# ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ""
# ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N "" 
# ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N ""

NB: You must have root privileges to perform a step above

Good Luck :D !

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s