openoms / joininbox

A terminal based graphical menu for JoinMarket
MIT License
153 stars 20 forks source link

Adding SSH 2fa using Google Authenticator breaks the ability to SSH -X into Joinmarket-Qt #61

Open davterra opened 3 years ago

davterra commented 3 years ago

I recently added Google Authenticator as an SSH 2fa means. It works great for SSH-ing in as "admin" but since doing so, I am not able to launch the Joinmarket-Qt GUI using the advised "ssh -X ....." command given in the Joininbox menu.

Steps to replicate:

1) install libpam-google-authenticator 2) do: google-authenticator 3) answer the resulting questions (the given defaults are fine) 4) Add this line to the bottom of your /etc/pam.d/sshd file: auth required pam_google_authenticator.so 5) Go to your /etc/ssh/sshd_config file and find the line that says: ChallengeresponseAuthentication no and change the no to yes. 6) Restart sshd. 7) Test basic ssh and then try to launch Joinmarket-Qt.