Public Key and Host Based Authentication

From: Tucker Bradford (
Date: 01/28/03

  • Next message: Beau Sapach: "Private Key file format?"
    Date: Tue, 28 Jan 2003 13:03:52 -0800
    From: Tucker Bradford <>

    I am using OpenSSH v 3.4p1 on Solaris 6 (Sparc) compiled from source.
    I need to do an either or authentication. It used to be (using sshd) that I could set up a set of AllowedAuthentications like this
    AllowedAuthentications publickey,password
    AllowedAuthentications hostbased,password

    This would allow me to specify a list of hosts who were allowed to connect, providing they had the correct password. It would also allow a host which wasn't in the allow list to connect by public key/password.

    Is there a way to do this in OpenSSH? I have looked through the man pages, but can't find anything conclusive. It looks like I can allow PubkeyAuthentication and Passwords, but not make any combinations. Also the only way I have found to filter out unknown hosts is through TCPWrappers.