How to configure Single-Sign-On using OpenSSH on AIX
说明
How to configure SSH to allow access using GSSAPI and achieve single-sign-on using vendor supplied OpenSSH or OpenSSH downloaded from the internet.
解决办法
Configure SSH for Active Directory and Authentication Services
In order to achieve SSO, OpenSSH first needs to be configured to logon to Active Directory. If Authentication Services is installed and configured you can make sure that PAM is properly configured by running the following command:
#/opt/quest/bin/vastool status
This should not return any errors concerning SSH or PAM.
The following settings should be configured for ssh in /etc/ssh/sshd_config
where ad.company.com is an Active Directory controller. Next, run this command to fill in domain controller information detected by Authentication Services:
# /opt/quest/bin/vastool -u host/ info toconf /etc/krb5/krb5.conf
Finally, edit the file /etc/krb5/krb5.conf so that the default_keytab_name parameter is set as follows:
Valid starting Expires Service principal 09/10/15 18:11:22 09/11/15 04:11:22 krbtgt/COMPANY.COM@COMPANY.COM
Then, connect to the server:
user@client$ ssh server
NOTE: By default, AIX Kerberos looks for credential caches in /var/krb5/security/creds/krb5cc_%{uid}. However, OpenSSH stores cached tickets at /tmp/krb5cc_%{uid}. This can be addressed by making the paths