LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 06-15-2004, 05:44 AM   #1
jamna17
LQ Newbie
 
Registered: Apr 2004
Distribution: FreeBSD 4.9
Posts: 10

Rep: Reputation: 0
sshd - host key


hi,

i checked rc.config and sshd_enable="YES"

but i can't connect to my server from an ssh client on another pc

plus when i run sshd at the command line i get an error saying

could not load host key: /etc/ssh/ssh_host_key
could not load host key: /etc/ssh/ssh_host_dsa_key
disabling protocol version 1. could not load host key
disabling protocol version 2. could not load host key
sshd: no host keys available. exiting

How do i correct this problem?

Need a solution urgently.
 
Old 06-15-2004, 06:56 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Are you attempting to start sshd as root? Have you created your host keys? Are they in /etc/ssh?
 
Old 06-15-2004, 07:22 AM   #3
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: sshd - host key

Quote:
Originally posted by jamna17
hi,

i checked rc.config and sshd_enable="YES"

but i can't connect to my server from an ssh client on another pc

plus when i run sshd at the command line i get an error saying

could not load host key: /etc/ssh/ssh_host_key
could not load host key: /etc/ssh/ssh_host_dsa_key
disabling protocol version 1. could not load host key
disabling protocol version 2. could not load host key
sshd: no host keys available. exiting

How do i correct this problem?

Need a solution urgently.


Permissions!

and the files should be in $HOME/.ssh directory
 
Old 06-16-2004, 08:20 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
He's asking about host keys not user keys. They are typically in /etc/ssh. It could be a permissions problem though. Private keys should be 600, and public keys should be 644.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSA host key for 172.17.5.60 has changed ssharma_02 Red Hat 3 11-15-2006 09:55 AM
ssh Host Key ziox Linux - Networking 6 02-07-2005 02:57 PM
OpenSSH Host Key Verification Failed GodSendDeath Linux - Software 12 01-21-2005 12:28 PM
SSH rejects my host key for version 2 only. Travis86 Linux - Networking 19 08-08-2003 03:48 AM
sshd won't read my host key Travis86 Linux - Networking 0 07-30-2003 10:48 AM


All times are GMT -5. The time now is 04:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration