On Wed, 4 Apr 2001, Minh Dang-Recalt wrote:
> Hello,
>
> I installed ssh-2.4.0-1.i386.rpm on two linux machine.
> I want the machine A where is running sshd2 could be accessed only by
> machine B with host based authentification and with machine B's public key !
Configure /etc/hosts.allow & /etc/hosts.deny on machine A to allow
ssh connection only from machine B. You may also want to use the
AllowUsers option on sshd_config to allow only certain users to login to
machine A coming from machine B.
> I don't want to type the password each time i want to connect to the machine
> A.
> However i want any other machines to be authentified with hostbased,
> publickey and password !
You're compromising security by NOT supplying passwords to gain access to
your machines, sort of like, "Save Password" dialog boxes you see often
in Windows. Passwords are there to protect your system. Have a look at
Expect if you really have to do this, although I haven't done that.
--------------------
"The best players, I think, are always the ones who remember
their losses, because they remember the pain and they hate it."
-- Billie Jean King