Changes between Version 3 and Version 4 of NspwUprouse/Agenda/ssh


Ignore:
Timestamp:
Sep 5, 2021, 7:58:56 PM (3 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NspwUprouse/Agenda/ssh

    v3 v4  
    189189}}}
    190190
    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 ===
     192Try to ssh to the server from '''another terminal'''. It will ask for the verification code.
     193
     194If this does not work, it means you have still enabled only one authentication.
     195
     196Edit the `/etc/pam.d/sshd file` again add the following line to the end.
     197
     198{{{
     199AuthenticationMethods publickey,password publickey,keyboard-interactive
     200}}}
     201
     202Now restart the ssh service and try again to log in from a different terminal.
     203
     204This will enable three authentication modes, i.e. your public Key, Password, and OTP.
     205
     206If 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 ==
    195215
    196216If you are a MAC OS or Linux GUI user, you may try https://www.informaticar.net/configure-passwordless-ssh-login-in-linux/ for two way authenticated SSH.