💾 Archived View for kelgors.me › wiki › ssh.gmi captured on 2023-01-29 at 15:30:43. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2023-12-28)

-=-=-=-=-=-=-

SSH

Config

Permit to use aliases or custom ssh keys for some hosts

Host alias1
  Hostname 192.168.0.23
  user username
  port 22
  IdentityFile ~/.ssh/id_ed25519.pub
Host alias2
  Hostname 192.168.0.24
  user username
  port 22
  IdentityFile ~/.ssh/id_rsa.pub

Raw image related

From a debian raw image, ssh don't start. The host key is missing. Fix with:

ssh-keygen -A
systemctl restart sshd
systemctl status sshd
Last-Updated: 2022-08-15