SSH & PGP Tools

A short command list on how to use PGP or GPG, SSH key generation and how to install APT packages relating to them.

Generate a GPG encryption key:

gpg --keygen

Generate an SSH key:

ssh-keygen

Installing 7zip tools using APT:

sudo apt install p7zip-full

Installing GPG graphical interface/keychain using APT:

sudo apt install seahorse-nautilus

Port Forwarding / SSH Tunneling

SSH: Local Port Forwarding

# Listen on local port 8080 and forward incoming traffic to REMOT_HOST:PORT via SSH_SERVER# Scenario: access a host that's being blocked by a firewall via SSH_SERVER;ssh -L 127.0.0.1:8080:REMOTE_HOST:PORT user@SSH_SERVER

SSH: Dynamic Port Forwarding

SSH: Remote Port Forwarding

Proxy Tunnel

HTTP Tunnel: SSH Over HTTP

Last updated

Was this helpful?