Karol-G / pyKmux

A small and simple python script to automatically renew a kerberos ticket in a tmux session

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyKmux

License

A small and simple python script to automatically renew a kerberos ticket in a tmux session

Installation

  • Install pexpect with: pip install pexpect
  • Clone the pyKmux repo
  • Execute kinit in your terminal and copy the entire password prompt (including the colon) into password_prompt in pykmux.py
  • Type in your password in password in pykmux.py

How to use

  • Create or attach to a tmux session: tmux new or tmux a -t X
  • Open a new tmux pane: Ctrl+B "
  • Activate the new pane: Ctrl+B DOWN
  • Execute pykmux.py every 5 hours: watch -n 18000 "python pykmux.py"
  • (Optional) Hide the pane

About

A small and simple python script to automatically renew a kerberos ticket in a tmux session

License:MIT License


Languages

Language:Python 100.0%