[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Nits in unstable ssh config



--- Michael D. Crawford <crawford@goingware.com> (2001-12-28 02:40):
> I updated ssh and some other packages from unstable today, and when it 
> installed, and also when my machine boots, I get the message:
> 
> Starting OpenBSD Secure Shell server: sshd/etc/ssh/sshd_config line 53:
>   Deprecated option Checkmail
> Disabling protocol version 2.  Could not load host key
> 
> and indeed when I try to use the putty ssh client from Windows to log into 
> the machine, I ask for ssh2 but it falls back to ssh1.
> 
> To get rid of the first message I commented off this line in 
> /etc/ssh/sshd_config:
> 
> CheckMail no
> changed to
> #CheckMail no
> 
> and added a second line for the ssh2 host key.  I started with:
> 
> HostKey /etc/ssh/ssh_host_key
> 
> and changed it to:
> 
> HostKey /etc/ssh/ssh_host_key
> HostKey /etc/ssh/ssh_host_dsa_key
> 
> If I only use ssh_host_dsa_key, then ssh1 is disabled.  I would prefer to 
> only use ssh2, but I think there is only an ssh1 client available for 
> classic Mac OS (NiftyTelnet SSH)
> 
> I have debian powerpc unstable installed on my Macintosh 8500.

I had the same problem when I built ssh 3.0 packages on my potato
machine.  I had a look at the postinst script, and it checks to see if
/etc/ssh/sshd_config exists and if it doesn't, it puts one there.  If it
does exist, it just does nothing, which invariably means you get left
with an old version of sshd_config.  My fix (since I haven't customised
my sshd_conifg at all), was to just move that to sshd_config.old and
reinstall the ssh package.  This put the correct ssh2 version of the
config file in its place, and all worked fine after that.

Hope that helps
Sean

-- 
Sean Quinlan (smq@gmx.co.uk)



Reply to: