QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1888|回复: 0

sshd问题,解决,。。。

[复制链接]
发表于 2007-12-23 13:32:15 | 显示全部楼层 |阅读模式
slax 启动sshd:/usr/sbin/sshd,提示:

Could not load host key: /etc/ssh/ssh_host_key
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 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available — exiting

从网上得到解决:
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
#/usr/sbin/sshd

但问题是每次都要这样敲上面几行就太烦了,有什么解决办法吗?修改配置文件?在slax中是如何弄的?谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 16:26 , Processed in 0.095132 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表