Follow these steps to skip entering your email address when prompted to authenticate by a trigger with the action 'prompt for 2-factor authentication'.

 

Set up your SSH client 

Configuration varies slightly between SSH clients, so you may need to refer to your client's documentation. There are two general steps:

  1. Create a new locale variable,  LC_CMD_USER , and set it to the email address associated with your Cmd account, for example:
     export LC_CMD_USER=name@company.com   

  2. Configure your SSH client to send the variable by adding the following line to your SSH config ( /etc/ssh/ssh_config ):
     SendEnv LC_CMD_USER .

To make the variable permanent,  export  it to your client's startup script (e.g.,  .bashrc  for Bash).

   

Set up the server

The server must be configured to accept the locale variable. Of the Linux distributions we support, only Ubuntu does this by default.

  • On the host, add the following line to  /etc/ssh/sshd_config :
     AcceptEnv LC_CMD_USER   

  • To apply this setting, restart the SSH daemon. 

If using CentOS 6, you must stop the Cmd agent before restarting the SSH daemon:

  1. Stop cmd daemon:
     initctl stop cmd  

  2. Make SSH daemon config changes and restart sshd:
     service sshd restart  

  3. Start cmd daemon:
     initctl start cmd  

Click here to learn more about the CentOS 6 known issue.

   

Outcomes

After setup, when you are required to authenticate: 

  • If you have set up multiple authentication methods, you will choose one, then see the authentication prompt. 

  • If you only set up one method, you will immediately see the authentication prompt.


Did this answer your question?