LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-25-2020, 09:47 AM   #1
MaestroC
LQ Newbie
 
Registered: Sep 2005
Posts: 13

Rep: Reputation: 0
Temporarily turning off 2FA on SSH


This is probably a pretty easy/stupid question for those who have dealt with it but I'm always wary of screwing around with stuff that can lock me out of a server so I will ask it anyway...

I need to temporarily turn off SSH 2FA so that I can transfer some accounts using the cpanel/WHM transfer tool.

If I go into sshd_config and set this:
ChallengeResponseAuthentication no

Plus go into pam.d/sshd and comment out the line:
auth required pam_google_authenticator.so nullok

I understand that that will disable 2FA for SSH. However, if once the transfer is completed if I reverse the process and turn those back on will my old code generator on my phone continue to work as it always did or will I have to "resync" it somehow in order to get valid codes?

Is there some other way I should do this to temporarily turn off 2FA?
 
Old 06-25-2020, 01:44 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
hm. You might want to create a temporary (local) account for this without 2FA (just an idea - if that works).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
AD service account SSH to Centos without 2FA davidpar007 Linux - Server 0 06-13-2018 04:45 PM
Allow service account SSH login without 2FA davidpar007 Linux - Newbie 1 06-12-2018 11:13 AM
LXer: Set Up Two Factor Auth (2FA) on Your Smartphone & Linux Desktop... now. LXer Syndicated Linux News 0 01-10-2017 08:30 PM
multiple authentication and 2FA genderbender Linux - Software 0 11-01-2012 10:03 AM
Turning off printer causes mouse to lockup temporarily BajaNick Linux - General 2 07-10-2005 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration