OpenSSH /etc/ssh/ssh_import_id

Original ๐Ÿ“‹ Ubuntu 24.04 LTS (Noble Numbat) 4 lines

Works On

Viewing:
Ubuntu 24.04 LTS (Noble Numbat)
Same on:
Ubuntu 20.04 LTS (Focal Fossa) Ubuntu 22.04 LTS (Jammy Jellyfish)
Other versions:

Details

Size
4 lines
MD5
8bfa390040fbeeae70bec14f2dccaf11
SHA256
88861afb27d23fd9655eefc5458db1744371de8fdb07c914d106390f24683dda

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/8bfa390040fbeeae70bec14f2dccaf11?hint=ssh_import_id
wget:
wget -O ssh_import_id https://exampleconfig.com/api/v1/config/original/8bfa390040fbeeae70bec14f2dccaf11?hint=ssh_import_id

For AI Agents

You are a DevOps agent. Fetch the default OpenSSH config for Ubuntu 24.04 LTS (Noble Numbat) from https://exampleconfig.com/api/v1/config/original/8bfa390040fbeeae70bec14f2dccaf11?hint=ssh_import_id. Compare with my current /etc/ssh/ssh_import_id and summarize differences and safe changes.

Copy this prompt into Claude, ChatGPT, or other AI assistants.

/etc/ssh/ssh_import_id
{
   "_comment_": "This file is JSON syntax and will be loaded by ssh-import-id to obtain the URL string, which defaults to launchpad.net.  The following URL *must* be an https address with a valid, signed certificate!!!  %s is the variable that will be filled by the ssh-import-id utility.",
   "URL": "https://launchpad.net/~%s/+sshkeys"
}

Install OpenSSH

Alpine Linux

sudo apk add openssh-server

Debian

sudo apt update && sudo apt install openssh-server

Red Hat Enterprise Linux

sudo yum install openssh-server

Ubuntu

sudo apt update && sudo apt install openssh-server

File Location

File Path
/etc/ssh/ssh_import_id
Directory
/etc/ssh/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this ssh_import_id?

Restore it. Compare it. Start clean.

How do I restore OpenSSH defaults?

Download, replace, restart.

Is ssh_import_id safe for production?

Yes. This is exactly what shipped. Safe starting point.

How does this differ from other OS versions?

Defaults change. This one is specific to Ubuntu 24.04 LTS (Noble Numbat).

Can I use this for OpenSSH troubleshooting?

Absolutely. Diff this against yours to spot the problem.