4.3. Configuring Client SSH Access
You can also configure the IPA client to accept incoming SSH requests and authenticate with the user's Kerberos credentials. After configuring the IPA client, use the following procedure to configure the IPA client for SSH connections. Remember to replace the example host and domain names with your own host and domain name.
SSH syslog configuration:
auth.info /var/log/sshd.log auth.info /var/log/sshd.log auth.crit /var/log/sshd.log auth.warn /var/log/sshd.log auth.notice /var/log/sshd.log auth.err /var/log/sshd.log
SSH logging configuration:
SyslogFacility AUTH LogLevel INFO
Configure sshd for GSSAPI (/etc/ssh/sshd_config)
# Kerberos options KerberosAuthentication yes #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes #KerberosGetAFSToken no # GSSAPI options GSSAPIAuthentication yes #GSSAPICleanupCredentials yes UsePAM yes
Restart sshd
# stopsrc -s sshd # startsrc -s sshd
Restart syslogd
# stopsrc -s syslogd # startsrc -s syslogd
The ipa-admintools package is not available for AIX. Consequently, you need to perform the following steps on the IPA server.
Add a host service principal for the client.
# ipa-addservice host/ipaclient.example.com
Retrieve the host keytab.
# ipa-getkeytab -s ipaserver -p host/ipaclient.example.com -k /tmp/krb5.keytab -e des-cbc-crc
Copy the keytab from the server to the client.
# scp /tmp/krb5.keytab root@ipaclient.example.com:/tmp/krb5.keytab
On the IPA client, use the ktutil command to import the contents into the main host keytab.
# ktutil ktutil: read_kt /tmp/krb5.keytab ktutil: write_kt /etc/krb5/krb5.keytab ktutil: q
Add a user that is only used for authentication. (This can be substituted with krb5 auth if that works from the ldap client). Otherwise go to the IPA server and use ldapmodify, bind as Directory Manager and create this user.
dn: uid=nss,cn=sysaccounts,cn=etc,dc=example,dc=com objectClass: account objectClass: simplesecurityobject objectClass: top uid: nss userPassword: Your own shared password here
On the IPA server, get a ticket for the admin user.
# kinit admin
You should be able to log in as admin using SSH without providing a password.
# ssh admin@ipaclient.example.com