View previous topic :: View next topic |
Author |
Message |
1024b n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Nov 2003 Posts: 10
|
Posted: Fri Nov 28, 2003 7:41 pm Post subject: OpenSSH |
|
|
Hmm, i emerged openssh and it installed without problems but when i try to run the server it says this:
Code: |
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.
|
I have run the keygen and changed the config file but it still doesnt work does anyone know how to fix this ![Question :?:](images/smiles/icon_question.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
malloc l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/6579039763fec331f70bd5.png)
Joined: 19 Sep 2003 Posts: 762
|
Posted: Fri Nov 28, 2003 8:10 pm Post subject: |
|
|
Try running /etc/init.d/ssh start
The first time you run it it will create all the necessary files for you to start the sshd later |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
1024b n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Nov 2003 Posts: 10
|
Posted: Fri Nov 28, 2003 8:31 pm Post subject: |
|
|
it says the same ![Crying or Very sad :cry:](images/smiles/icon_cry.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kallamej Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3896974784c480ee5977f8.gif)
Joined: 27 Jun 2003 Posts: 4983 Location: Gothenburg, Sweden
|
Posted: Fri Nov 28, 2003 8:55 pm Post subject: |
|
|
Do you have the correct permissions on the keys? From the Files section of man sshd: Code: | /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key,
/etc/ssh/ssh_host_rsa_key
These three files contain the private parts of the host keys.
These files should only be owned by root, readable only by root,
and not accessible to others. Note that sshd does not start if
this file is group/world-accessible.
/etc/ssh/ssh_host_key.pub, /etc/ssh/ssh_host_dsa_key.pub,
/etc/ssh/ssh_host_rsa_key.pub
These three files contain the public parts of the host keys.
These files should be world-readable but writable only by root.
Their contents should match the respective private parts. These
files are not really used for anything; they are provided for the
convenience of the user so their contents can be copied to known
hosts files. These files are created using ssh-keygen(1).
|
_________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
1024b n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Nov 2003 Posts: 10
|
Posted: Sat Nov 29, 2003 12:59 am Post subject: |
|
|
yeah |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kallamej Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3896974784c480ee5977f8.gif)
Joined: 27 Jun 2003 Posts: 4983 Location: Gothenburg, Sweden
|
Posted: Sat Nov 29, 2003 8:41 am Post subject: |
|
|
Did you run ssh-keygen yourself or did you do as malloc suggested? Try to delete/move/backup your keys and run Code: | /etc/init.d/sshd start |
as root. The script will, as malloc said, create the keys for you. Show us exactly what you do so we can see if there's anything mistyped. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|