Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
quick ssh question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Fri May 14, 2004 1:17 pm    Post subject: quick ssh question Reply with quote

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
View user's profile Send private message
drutten
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 103
Location: Sweden

PostPosted: Fri May 14, 2004 1:26 pm    Post subject: Reply with quote

what happens if you remove the keys?
shouldn't sshd generate new ones then?
Back to top
View user's profile Send private message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Fri May 14, 2004 1:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Fri May 14, 2004 4:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
kpack
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 137

PostPosted: Fri May 14, 2004 5:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
asunder
n00b
n00b


Joined: 28 Feb 2004
Posts: 7

PostPosted: Fri May 14, 2004 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
darkarchon
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 195
Location: Dallas, Texas

PostPosted: Sat May 15, 2004 1:32 am    Post subject: Re: quick ssh question Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum