View Single Post

   
  #4 (permalink)  
Old 02-20-2008, 12:02 PM
Giovanni
 
Posts: n/a
Default Re: client ssh goes in time out - why??

On 11/26/05 13:26, Giorgio Corani wrote:
>
>>
>> In the folder .ssh there should be a file known_hosts. If there isn't
>> maybe your ssh client does not have write to your directory.

>
>
> Indeed, it was lacking.
> I added the file via touch, but the problem remains the same
>
>
> I also checked the permissions of .ssh:
>
> drwx------ 2 giorgio users 48 2005-11-23 20:47 .ssh/
>
> which should be correct.


Did your installatione create the host key files?

If not try the following (as root):

# Create host keys if needed.
if [ ! -r /etc/ssh/ssh_host_key ]; then
/usr/bin/ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
/usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
fi
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
fi


Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 <http://counter.li.org/>
Reply With Quote