SSHD Key Generation

I just finished installing 11.2 to be setup as a LAMP server. I thought I enabled SSH during installation but, apparently not or something did not go right with it.

When i go to connect through putty from my XP machine, I’m told “connection refused”.

When I go up to the server to check the service by doing a ‘service sshd restart’ I’m told “Could not load host key: /etc/ssh/ssh_host_dsa_key”. I looked in that directory and i find that host key does exist.

I’m just starting to learn the intricacies of ssh. How do i troubleshoot this further?

Maybe the key’s damaged. Just delete anything with host in the name in /etc/ssh and restart ssh, then it will generate a new set of keys.

Well … that was beautifully simple … thanks.