Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatic totp-copy-pin-as-kill #8

Open
fraricci opened this issue Aug 28, 2023 · 1 comment
Open

automatic totp-copy-pin-as-kill #8

fraricci opened this issue Aug 28, 2023 · 1 comment

Comments

@fraricci
Copy link

Hi!

Do you know of a way to run automatically totp-copy-pin-as-kill just before TRAMP ask for a password?
The idea is to have the OTP copied in the clipboard, so that it is ready when the remote machine ask for it.

I'm wondering if there is a hook for this case, but not sure.

Thanks in advance!

@juergenhoetzel
Copy link
Owner

Do you know of a way to run automatically totp-copy-pin-as-kill just before TRAMP ask for a password? The idea is to have the OTP copied in the clipboard, so that it is ready when the remote machine ask for it.

I'm wondering if there is a hook for this case, but not sure.

Thanks in advance!

No single hook. But tramp uses auth-source. So
one option would be to integrate emacs-totp with a custom auth-source .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants