View previous topic :: View next topic |
Author |
Message |
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Fri May 14, 2004 1:17 pm Post subject: quick ssh question |
|
|
i get errors when i try ' /etc/init.d/ssh start 'saying could not load /etc/ssh/ssh_host_dsa_key
and /etc/ssh/ssh_host_rsa_key ... then exiting..
but i already created them
# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
# ssh-keygen -t rsa -f /etc/ssh/ssh_host_dsa_key
does anyone know how to solve this problem?
do i have to restart the computer? |
|
Back to top |
|
|
drutten Tux's lil' helper
Joined: 31 Dec 2003 Posts: 103 Location: Sweden
|
Posted: Fri May 14, 2004 1:26 pm Post subject: |
|
|
what happens if you remove the keys?
shouldn't sshd generate new ones then? |
|
Back to top |
|
|
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Fri May 14, 2004 1:28 pm Post subject: |
|
|
never tried that, hmmm gonna do that right now...
just
# rm /etc/ssh/ssh_host_dsa_key
# rm /etc/ssh/ssh_host_dsa_key
then # /etc/init.d/ssh start
correct? |
|
Back to top |
|
|
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Fri May 14, 2004 4:52 pm Post subject: |
|
|
ok that worked somewhat. i get less errors
now when i # /etc/init.d/sshd start
it just says starting sshd [!!]
the red exclamations
and when i # /etc/init.d/sshd status
i get
sshd not started [!!]
how do i get it to start? or at least get it to tell me whats wrong? |
|
Back to top |
|
|
kpack Tux's lil' helper
Joined: 29 Mar 2004 Posts: 137
|
Posted: Fri May 14, 2004 5:54 pm Post subject: |
|
|
When you originally created the keys did you assign a passphrase? If so, that's your problem. Recreate the keys and don't assign a passphrase. Only use a passphrase on client SSH keys. |
|
Back to top |
|
|
asunder n00b
Joined: 28 Feb 2004 Posts: 7
|
Posted: Fri May 14, 2004 6:08 pm Post subject: |
|
|
Are you using openssh or ssh? I had problems using openssh so I did an "emerge -C openssh" and then emerged ssh. Worked great for me. |
|
Back to top |
|
|
darkarchon Apprentice
Joined: 21 Mar 2004 Posts: 195 Location: Dallas, Texas
|
Posted: Sat May 15, 2004 1:32 am Post subject: Re: quick ssh question |
|
|
remix wrote: |
# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
# ssh-keygen -t rsa -f /etc/ssh/ssh_host_dsa_key
|
the second line should be "ssh_host_rsa_key". you are setting both to "dsa_key". _________________ "Is life so dear, or peace so sweet, as to be purchased at the price of chains and slavery? Forbid it, Almighty God! I know not what course others may take; but as for me, give me liberty or give me death!" -- Patrick Henry, 1775 |
|
Back to top |
|
|
|