AllowUsers user1 user2
You can also DenyUsers here, but that is redundant, as AllowUsers implies DenyUsers to all those not listed.
]]>BTW: short guide for ssh setup http://www.yolinux.com/TUTORIALS/LinuxT … y.html#SSH
]]>ssh_exchange_identification: Connection closed by remote host
edit hosts.allow and hosts.deny
I comment in /etc/hosts.deny and now works fine.
But I dont know is it good to comment only in host.deny
the error message i'm getting is
ssh_exchange_identification: Connection closed by remote host
at first it was erroring when i was trying to start the daemon...after looking closely i realized ssh-keygen was creating a key with a different name than what sshd was looking for (i.e. ssh_host_dsa-key.pub vs. ssh_host_dsa_key.pub)
]]>also check out the excellent ssh faq linked at the bottom.
]]>Google will help with key generation. Basically you generate a key and copy part of it into /home/username/.ssh on the server machine, and put the other part in ~/.ssh on the machine you want to log in from... I think.
Dusty
]]>If you do find a good link it would be helpful to post it to the WHERETO in the wiki; if you don't find a link, it would be helpful to post the procedure to the wiki once you get it figured out.
My guess is it should be pretty simple:
edit hosts.allow and hosts.deny
add sshd to the list of DAEMONS in rc.conf
start sshd
test
I've never done it though... but if it is that simple, that would explain why there aren't any howtos.
Dusty
]]>