|
From: Eli H. <el...@se...> - 2007-11-02 20:50:10
|
On Friday 02 November 2007 02:42:37 pm victor nikiforenko wrote: > Hello List > > First at all excuse me for my pour english. > I'm curently use a Devil-Linux 1.2.13 like firewall > whit DMZ on Compaq evo PIV whit 1152MB ram. > > The problem is: i try to use it whit hostkey but when > i start it and try to conect from a remote pc whit ssh > it don't ask me for a pub hostkey, and another problem > is whit keygen, i creatit whit "ssh-keygen -b 2048 -t > rsa" > in this step evry works fine but when i add it to > sshd_config and restart ssh, ssh show me: > > Starting SSHD: Could not load host key: > /etc/ssh/ssh_rsa_key > Disabling protocol version 2. Could not load host key > sshd: no hostkeys available -- exiting. > > my sshd_conf is: > > Port 22 > Protocol 2 > Ciphers aes256-cbc > HostKey /etc/ssh/ssh_host_rsa_key > SyslogFacility AUTH > LogLevel INFO > PermitRootLogin yes > StrictModes yes > MaxAuthTries 3 > RSAAuthentication yes > PubkeyAuthentication yes > AuthorizedKeysFile /etc/ssh/ssh_host_rsa_key > PasswordAuthentication yes > PermitEmptyPasswords no > ChallengeResponseAuthentication yes > PrintLastLog yes > Banner /etc/ssh/sshd-banner > Subsystem sftp /usr/libexec/sftp-server > > Thanks a lot > Hi Victor, Is this a typo? > Starting SSHD: Could not load host key: > /etc/ssh/ssh_rsa_key Or did you copy directly from the console? "/etc/ssh/ssh_rsa_key" is not listed in your sshd_config excerpt. If sshd is really trying to use "ssh_rsa_key", make sure it exists in /etc/ssh/ Also, you are specifying the server HostKey and AuthorizedKeysFile as the same file. I don't think it will work like that. Read up on man sshd, man sshd_config ... You can adjust the logging level in the config: LogLevel DEBUG Restart sshd then watch the log messages while you try to log in -- syslog prints to tty10 (Alt+F10) [I think, at least ... I don't remember the default, I've changed mine to logfile] hth, eli |