Coder Social home page Coder Social logo

oooh-name / ssh_totp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kerk12/ssh_totp

0.0 0.0 0.0 36 KB

A Python based SSH 2-Factor-Authentication script using Time-based One-Time-Passwords.

License: GNU General Public License v3.0

Shell 13.11% Python 86.89%

ssh_totp's Introduction

A Python based 2FA Time-based One Time Password script for authenticating in SSH.

Developed by Kyriakos Giannakis ([email protected]).

Install:
  1. git clone ...
  2. Install the requirements: $ sudo pip install -r requirements.txt
  3. Run the install script as root: $ sudo ./setup.sh
  4. Restart the SSH service: $ sudo service ssh restart
  5. Now each user needs to enable 2FA on his own account, by issuing: $ sshtotp --enable. When the command is run, a base32 Secret Key will be generated and saved in HOME/.totpKey. This needs to be copied onto a 2FA mobile app such as Google Authenticator or FreeOTP. Keep this key secret.

Whenever a user tries to log in, a prompt to enter a One Time Password will appear.

Note: The time on both the server and the mobile device needs to be in sync. We recommend using NTP for syncing the time.

Open Source Licences:

PyOTP. Copyright (C) 2011-2016 Mark Percival [email protected], Nathan Reynolds [email protected], and PyOTP contributors.

ssh_totp's People

Contributors

kerk12 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.