Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 696 Bytes

File metadata and controls

50 lines (40 loc) · 696 Bytes

SSH Notes (Level 1) 🔐

Quick Connect

Basic connection:

ssh user@host -p PORT

Bandit (OverTheWire)

  • Host: bandit.labs.overthewire.org
  • Port: 2220

Example:

ssh bandit0@bandit.labs.overthewire.org -p 2220

SSH Keys

Optional but recommended for security and convenience.

Generate key:

ssh-keygen -t ed25519 -C "linux-notes"

List keys:

ls -la ~/.ssh

SSH Config

Quality of life improvement to save typing.

Edit/Create config file:

nano ~/.ssh/config

Example content:

Host bandit
  HostName bandit.labs.overthewire.org
  User bandit0
  Port 2220

Connect with alias:

ssh bandit