| 191 | | === Login to the server === |
| 192 | | Try to ssh to the server from a new terminal. It will ask for the verification code. |
| 193 | | |
| 194 | | == Extra == |
| | 191 | === Testing === |
| | 192 | Try to ssh to the server from '''another terminal'''. It will ask for the verification code. |
| | 193 | |
| | 194 | If this does not work, it means you have still enabled only one authentication. |
| | 195 | |
| | 196 | Edit the `/etc/pam.d/sshd file` again add the following line to the end. |
| | 197 | |
| | 198 | {{{ |
| | 199 | AuthenticationMethods publickey,password publickey,keyboard-interactive |
| | 200 | }}} |
| | 201 | |
| | 202 | Now restart the ssh service and try again to log in from a different terminal. |
| | 203 | |
| | 204 | This will enable three authentication modes, i.e. your public Key, Password, and OTP. |
| | 205 | |
| | 206 | If you need to disable your password, find the following line on `/etc/pam.d/sshd` and comment the line by using a #. |
| | 207 | |
| | 208 | {{{ |
| | 209 | @include common-auth |
| | 210 | }}} |
| | 211 | |
| | 212 | |
| | 213 | |
| | 214 | == Note == |