How to Login with kerberos¶
This section covers the procedure for accessing PDC resources . Before following this section, make sure you have a PDC account successfully created and you have recieved your username and password.
In order to log in to PDC computers you require:
- A Kerberos installation
- A SSH implementation that supports Kerberos.
Logging into PDC is a two stage process. You must first generate Kerberos credentials using kinit, which requires a password, then use those credentials together with SSH to log in to cluster on which you have an active allocation.
General information about Kerberos¶
PDC uses Kerberos authentication protocol.
Kerberos tickets are stored on your local machine, and are then forwarded when you try to log in to the remote system. You’ll need the following software in versions that are appropriate for your operating system:
- Kerberos v5 software (from Heimdal) - which is necessary for getting a Kerberos ticket, and
- SSH software supporting GSSAPI with KeyExchange (from modified OpenSSH).
Commonly used Kerberos commands¶
Here is a list of commonly used kerberos commands for users.
|kinit||kinit obtains and caches an initial ticket-granting ticket for principal. kinit [username]@NADA.KTH.SE|
|klist||klist lists the Kerberos principal and Kerberos tickets held in a credentials cache, or the keys held in a keytab file.|
|kdestroy||The kdestroy utility destroys the user’s active Kerberos authorization tickets by overwriting and deleting the credentials cache that contains them. If the credentials cache is not specified, the default credentials cache is destroyed.|
|kpasswd||The kpasswd command is used to change a Kerberos principal’s password. kpasswd first prompts for the current Kerberos password, then prompts the user twice for the new password, and the password is changed.|
On our clusters we have several login nodes. Main one and one used as backup in case the first one is out of commission. The login nodenames uses the following syntax…
Beskow login node fingerprints¶
Step by step Login tutorial¶
For step-by-step tutorials on how to login, choose from below the operating system of your local computer from which you want to access PDC resources. If you face any trouble logging in or need further help, feel free to Contact Support.
- How to login from Linux
- How to login from Windows
- How to login from Mac OS
- How to reset your Kerberos password
- How to configure kerberos and SSH with kerberos
- Generating SSH keys
Troubleshooting login problems¶
If you do not find a solution, please Contact Support with the following information…
Which operating system and version you are using
Any output/error message you got from
kinit -f <username>@NADA.KTH.SE
The output from
The output from…
ssh -vvv -o GSSAPIDelegateCredentials=yes -o GSSAPIKeyExchange=yes \ -o GSSAPIAuthentication=yes <PDC username>@<cluster>.pdc.kth.se