Oracle Labs
DiscordGitHubTelegram
  • Welcome!
  • Why Oracle Labs?
  • Services
    • Chainlink node service provider
    • Consulting & development
  • Infrastructure Whitepaper
    • Supported Networks
    • Cloud setup
    • How do we monitor?
      • Monitoring Endpoints
  • Technical
    • Chainlink Guide
    • Chainlink Public Jobs
    • Solving common problems
    • Chainlink Node Logs
      • Log
      • Keystore
      • HeadTracker
      • GasEstimator
      • DirectRequest
      • Postgres
      • Client
      • BulletproofTxManager
      • BalanceMonitor
      • FluxMonitor
      • PeriodicBackups
      • OCR
  • Blog
    • Articles
      • External Initiators
      • Configuring logging in a kubernetes cluster
      • Integrate Chainlink Operator Contract with Chainlink Node
      • Setting up custom price feeds on chainlink node
      • Two-factor authentication to the server via ssh
      • Creating an L2TP vpn tunnel over IPSec
Powered by GitBook
On this page
  • Initial Setup
  • Setting up Google Authenticator
  • Sources:
  1. Blog
  2. Articles

Two-factor authentication to the server via ssh

PreviousSetting up custom price feeds on chainlink nodeNextCreating an L2TP vpn tunnel over IPSec

Last updated 2 years ago

In this series of mini articles, we continue to describe how to deploy high-availability and secure Chainlink node. In this article we describe how to enable 2FA on the Guard VM server via ssh.

Initial Setup

Note: If you get “permission denied” when running the command, use vim and add.

Setting up Google Authenticator

And answer according to the pattern:

  • Make tokens “time-base”: yes

  • Update the .google_authenticator file: yes

  • Disallow multiple uses: yes

  • Increase the original generation time limit: no

  • Enable rate-limiting: yes

With the received data (scan qr or secret key), create a new Google Authenticator account.

If you add it manually:

  • Account: arbitrary name-service ID

  • Key: Your new secret key

Enable mandatory verification of Google Authenticator on the server

Now the server can only be accessed via ssh key and google authenticator code.

Sources:

https://ubuntu.com/tutorials/configure-ssh-2fa#1-overview
https://www.digitalocean.com/community/tutorials/how-to-set-up-multi-factor-authentication-for-ssh-on-ubuntu-20-04