Internal Documentation
Status
  • πŸ‘‹Welcome
    • πŸ—‚οΈWhat is this?
    • πŸ•Quick Start
    • πŸ’ΈBilling
  • πŸ—ƒοΈExternal Links
    • πŸ—„οΈPublic Documentation
    • πŸ“‹Private GitHub
    • πŸ“‹Public GitHub
    • πŸ—»NetData
    • πŸ“ŠTrello
    • πŸ•°οΈService Monitoring
  • πŸ“Policies
    • Authentication, Access and Accounts
    • Issue and Project Tracking
    • Creation and Managment of Servers or Services
    • Monitoring and Alerting
    • External Access to Systems
    • Management of Documentation
  • πŸ“‹Processes
    • ❔Deploy new Container Stack
    • Limit Bandwidth to Container
    • ❔Create new Virtual Machine
    • Disaster Recovery
    • Port Forwarding or Tunneling a Service
    • Crowdsec Modules
    • Internal IP Range Change
    • SSH Keys
    • Increase Disk on VM
    • Add Wireguard Client
    • ❔New Domain
    • DNS Management
  • πŸ—ΊοΈService Overviews
    • Websites
    • Portainer and GitOps
      • All Compose Stacks
    • Content Creation
      • Davinci Resolve Server
    • Plex Suite
      • Monitarr
      • Declutarr
      • Tdarr
      • Maintainerr
      • Dashdot
      • Overseerr
      • Bazarr
      • Wizarr
      • Plex
      • Tautulli
      • MovieMatch
      • Prowlarr
      • Radarr
      • Sonarr
      • Lidarr
      • FlareSolverr
      • qBittorrent
      • SabNZBD
      • Huntarr
    • Pterodactyl
    • Home Automation & Physical Security
      • Google Assistant
      • Tuya Cloud
      • Home Assistant
    • Infrastructure
      • ❔Cloudflare
      • NextDNS
      • UniFi
      • Synology NAS
      • Proxmox VE
      • Vultr
      • ❔CyberPower PowerPanel & UPS
    • Maintenance & Monitoring
      • AutoHeal
      • Beszel
      • Proxmox Backup Server
      • Duplicati
      • Google Drive Sync
      • Ansible
      • UptimeKuma
      • NetbootXYZ
    • Security
      • Bitwarden
      • Google OpenID Auth
      • Wazuh
      • CrowdSec
    • Remote Access
      • Cloudflare Zero Trust
      • ❔UniFi - Wireguard
      • Kasm
    • Other Adhoc Apps
      • ISponsorBlockTV
      • Homebox
      • ❔Hosted Discord Bots
      • LibreChat
      • Imgur
      • Morphos
      • Zapier
      • EpicGames Free Games
      • GitBook
      • Trello
      • StirlingPDF
      • ❔MeTube
    • ❔OpenAI
  • πŸ–₯️Physical Hardware
    • Macaroni
    • Fettuccine
    • Linguine
    • UniFi
  • ‼️Troubleshooting
    • An Introduction...
    • UptimeKuma alerts
    • Portainer
    • Pterodactyl
  • πŸ“–-- Administration --
    • πŸ“ŽGitbook Templates
      • Guide - Root Page
      • Guide - New Docker App
      • Hardware Overview
      • App Overview - Externally Hosted
      • App Overview - Container
      • Miniguide - Compose
      • App Overview - Hosted Discord Bot
Powered by GitBook
On this page
  • Requirements
  • SSH keys explained
  • How to install the Public Key
  • Ubuntu
  • Windows
  • How to install the Private Key
  • Ubuntu
  • Windows

Was this helpful?

  1. Processes

SSH Keys

PreviousInternal IP Range ChangeNextIncrease Disk on VM

Last updated 1 year ago

Was this helpful?

Requirements

Bitwarden

SSH keys explained

SSH keys contain 2 pieces, a public key and a private key.

The public key is installed on whatever hardware you wish to SSH into. The private key is installed on the machine you will SSH from.

How to install the Public Key

Public Keys allow the user with the private key to SSH into the machine

Ubuntu

  1. SSH into the server and run the below command to elevate to Root user, input the password you used to log in

    sudo -i
  2. Run the below commands

    mkdir -p ~/.ssh
    echo ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhKliloNg32f9J8xtnLi0wal4FVnTYkNNQRhqTdPNcT trentnbauer@gmail.com >> ~/.ssh/authorized_keys
    chmod -R go= ~/.ssh

Windows

  1. Log into the server as an administrator

  2. Open Powershell as administrator and run the below command

    echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhKliloNg32f9J8xtnLi0wal4FVnTYkNNQRhqTdPNcT trentnbauer@gmail.com" | Out-File -filepath $ENV:userprofile\.ssh\id_rsa.pub -Force -verbose

How to install the Private Key

The private key is used to SSH into servers configured with the public key

Ubuntu

  1. SSH into the server and SU into the Root account

  2. Run the below commands

    mkdir -p ~/.ssh/
    nano ~/.ssh/id_rsa
  3. In the text editor, copy and paste the contents of the Private Key and save

  4. Run the below commands to make the key usable

    chmod 700 ~/.ssh/
    chmod 600 ~/.ssh/id_rsa

Windows

  1. Log into the server as an administrator

  2. Open Powershell as administrator and run the below command, putting the contents of the private key between the " "

    $privkey = ""
  3. Run the below command to output the private key into the keystore

    echo $privkey | Out-File -filepath $ENV:userprofile.ssh\id_rsa -Force -verbose VERBOSE: Performing the operation "Output to File" on target "C:\Users\x.ssh\id_rsa"
πŸ“‹
How to SSH into a server
Basic Terminal Commands
Drawing