google-web-oauth

command module
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

google-web-oauth

Description

google-web-oauth is ssh authentication software. this provides you with multi-factor authentication.

demo

Usage

USE PAM

for ubuntu

  1. Get the oAuth client ID on google.
  2. Please place the secret file to /etc/google-web-oauth/client_secret.json
  3. set binary.
    • /lib/x86_64-linux-gnu/security/google-web-oauth.so
    • /usr/bin/google-web-oauth
  4. Write the following in /etc/pam.d/sshd
auth    required google-web-oauth.so
#@include common-auth # must comment out.
  1. Write the following in sshd_config and restart sshd process.
KbdInteractiveAuthentication yes
UsePAM yes
AuthenticationMethods publickey,keyboard-interactive
ChallengeResponseAuthentication yes
USE SSH

In this case, they skip ForceCommand when use ProxyCommand, it is vulnerable...

  1. Get the oAuth client ID on google.
  2. Please place the secret file to /etc/google-web-oauth/client_secret.json
  3. set binary.
    • /usr/bin/google-web-oauth
  4. Write the following in sshd_config and restart sshd process.
ForceCommand sudo SSH_CONNECTION="$SSH_CONNECTION" /usr/bin/google-web-oauth && eval ${SSH_ORIGINAL_COMMAND:-/bin/bash}

blog

Install

To install, use go get:

$ go get -d github.com/pyama86/google-web-oauth

Contribution

  1. Fork (https://github.com/pyama86/google-web-oauth/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

pyama86

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL