This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
2fa [2024/05/03 17:28] – -formatting hogwild | 2fa [2024/05/03 18:01] – hogwild | ||
---|---|---|---|
Line 3: | Line 3: | ||
This is content taken from the following forum thread: \\ [[https:// | This is content taken from the following forum thread: \\ [[https:// | ||
- | These are simple configuration notes. These notes are not intended to be a complete HOWTO. | + | These are simple configuration notes and are not intended to be a complete HOWTO. |
This setup uses openssh with google-authenticator as 2-Factor Authentication. Only the root user is supported. | This setup uses openssh with google-authenticator as 2-Factor Authentication. Only the root user is supported. | ||
- | |||
- | Prerequisites : Install/ | ||
\\ | \\ | ||
+ | |||
+ | Prerequisite: | ||
+ | |||
+ | \\ First, we install openssh-server and google-authenticator: | ||
opkg install openssh-server-pam google-authenticator-libpam | opkg install openssh-server-pam google-authenticator-libpam | ||
- | (hopefully | + | Hopefully |
\\ | \\ | ||
- | Now configure the correct settings in / | + | Next, we enable openssh-server |
- | \\ | + | Next, we configure the correct settings in configuration file / |
#!/bin/sh | #!/bin/sh | ||
Line 50: | Line 52: | ||
The new service must be enabled at boot time as well: | The new service must be enabled at boot time as well: | ||
- | / | + | / |
Port 2222 # to be changed if desired | Port 2222 # to be changed if desired |