Linux command
kinit 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Get Kerberos ticket
kinit [username]
Get ticket for specific principal
kinit [username@REALM]
Specify keytab file
kinit -k -t [keytab.file] [principal]
Get forwardable ticket
kinit -f [username]
Set ticket lifetime
kinit -l [1h] [username]
Renew existing ticket
kinit -R
说明
kinit obtains Kerberos tickets from the Key Distribution Center (KDC). The ticket-granting ticket (TGT) enables authentication to Kerberos-protected services without repeated password entry. The tool is essential for Kerberos authentication in enterprise environments, accessing services like NFS, SSH, and Active Directory.
参数
- -k
- Use keytab file.
- -t _keytab_
- Keytab file path.
- -l _lifetime_
- Ticket lifetime.
- -r _lifetime_
- Renewable lifetime.
- -f
- Get forwardable ticket.
- -F
- Non-forwardable ticket.
- -p
- Get proxiable ticket.
- -R
- Renew existing ticket.
- -c _cache_
- Credentials cache.
- -S _service_
- Service principal.
FAQ
What is the kinit command used for?
kinit obtains Kerberos tickets from the Key Distribution Center (KDC). The ticket-granting ticket (TGT) enables authentication to Kerberos-protected services without repeated password entry. The tool is essential for Kerberos authentication in enterprise environments, accessing services like NFS, SSH, and Active Directory.
How do I run a basic kinit example?
Run `kinit [username]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -k do in kinit?
Use keytab file.