You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
So I did exactly as you have outlined but now when attempting to connect via ssh i get an immediate "Connection Closed By: 10.0.0.0" which is the exact response I recieve when I attempt to use any other method, but this is essentially the same method as I have tried outlined in the original post.mcbeav– mcbeav2020-10-01 21:51:39 +00:00Commented Oct 1, 2020 at 21:51
-
@mcbeav is it just not working locally or did you not get google auth working at all?laktak– laktak2020-10-02 08:37:59 +00:00Commented Oct 2, 2020 at 8:37
-
As of right now, with my /etc/pam.d/sshd file contents shown in the original post, and my /etc/ssh/ssh_config & /etc/ssh/sshd_config contents shown in the original post WITHOUT modifying the contents to try to include access-local.conf and placing a conditional for the authenticator module, Google Authenticator works just fine. When connecting via SSH, a key is first checked. If a key doesn't exist, the connection is refused immediately. If a key exists, then a password is requested. If the password is correct, then a Google Auth code is required. This is what I want, except when localmcbeav– mcbeav2020-10-02 09:23:00 +00:00Commented Oct 2, 2020 at 9:23
-
When local, I only want to skip the Google Authenticator because a few apps I use don't support 2 Factor Authentication. They only support using a password and a key, but I do need to keep Google 2FA enabled for other reasons.mcbeav– mcbeav2020-10-02 09:24:08 +00:00Commented Oct 2, 2020 at 9:24
-
once again, everything works fine when I have my configuration files setup the way I have posted in the post. When attempting to connect, the key is checked, then asks for password, then 2FA. When copying exactly what you posted, and adding into my sshd file I again get the "Connection Closed by 10.0.0.0.0" immediately. Any chance you can post up a copy of your entire /etc/ssh/ssh_config /etc/ssh/sshd_config, and /etc/pam.d/sshd files so I can compare and contrast? I have a feeling I am missing something, or have something in the wrong ordermcbeav– mcbeav2020-10-02 10:05:15 +00:00Commented Oct 2, 2020 at 10:05
|
Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. shell-script), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you