Hoeze
Hoeze

Reputation: 716

How do I use Kerberos tickets to execute commands via SSH on a remote server?

I would like to host a web service (Jupyterhub) which executes the following steps for a user:

  1. Acquire Kerberos ticket from user
  2. Use Kerberos ticket to spawn batch job on remote server

Therefore, I would need some python snippet to handle the authentication part (python-gssapi) and pass the ticket to Paramiko. However, I do not understand how to get a Kerberos ticket with username/password and then pass it explicitly to SSHClient.connect

Any help is highly appreciated :)

Upvotes: 0

Views: 516

Answers (0)

Related Questions