Multifactor authentication: Difference between revisions

Line 57: Line 57:
Passcode or option (1-1):vvcccbhbllnuuebegkkbcfdftndjijlneejilrgiguki
Passcode or option (1-1):vvcccbhbllnuuebegkkbcfdftndjijlneejilrgiguki
Success. Logging you in...}}
Success. Logging you in...}}
=== Configuring your SSH client to only ask every so often ===
You can configure your OpenSSH client to only ask for the second factor every so often by using the "ControlMaster" mechanism. To do so, edit your <tt>.ssh/config</tt> to add the lines:
<pre>
Host HOSTNAME
    ControlPath ~/.ssh/cm-%r@%h:%p
    ControlMaster auto
    ControlPersist 10m
</pre>
where you would replace <tt>HOSTNAME</tt> with the host name of the server for which you want this configuration.
Bureaucrats, cc_docs_admin, cc_staff, rsnt_translations
2,837

edits