Original link: https://www.iots.vip/post/iterm2-jumpserver-totp-autocomplete.html
The bastion machine is forced to enable MFA two-factor authentication, and every time you need to open the APP to enter the verification code, which is very inconvenient for people who log in frequently, so use expect
and oath-toolkit
to complete the automatic login. (Friendly reminder: The bastion machine here is only accessible on the intranet, and it is an edge test system environment. For security reasons, please do not use it in an important environment).
This article is reprinted from: https://www.iots.vip/post/iterm2-jumpserver-totp-autocomplete.html
This site is for inclusion only, and the copyright belongs to the original author.