Skip to content

Instantly share code, notes, and snippets.

@brunolpsousa
brunolpsousa / gpg-ssh-setup.md
Created October 17, 2025 11:44 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@brunolpsousa
brunolpsousa / index.ts
Last active August 28, 2023 16:57
mss index for testing
import express from 'express'
import cookieParser from 'cookie-parser'
import 'dotenv/config'
import '@mongo/connections'
const { PORT, COOKIE_SECRET } = process.env
const port = PORT || 5000
const app = express()
app.use(express.json())
Informações do computador:
Fabricante: Gigabyte Technology Co., Ltd.
Modelo: GA-970A-UD3
Tipo: Computador de mesa
Sem entrada de toque
Informações do processador:
Fabricante da CPU: AuthenticAMD
Marca da CPU: AMD FX(tm)-8350 Eight-Core Processor
Família do processador: 0x15
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD FX(tm)-8350 Eight-Core Processor
CPU Family: 0x15
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz
CPU Family: 0x6