Skip to content

Instantly share code, notes, and snippets.

@loncarales
Forked from DenisKramer/gist:641acdba305e2a311b9b5b6c29c3d4bb
Last active April 18, 2026 20:40
Show Gist options
  • Select an option

  • Save loncarales/2897361d785cb5d8be78703991198241 to your computer and use it in GitHub Desktop.

Select an option

Save loncarales/2897361d785cb5d8be78703991198241 to your computer and use it in GitHub Desktop.
Simple CoreOS Ignition Config with username:password
{
"ignition": {
"version": "3.0.0"
},
"passwd": {
"users": [
{
"name": "core",
"passwordHash": "$6$rounds=4096$NxaeyFQ5iHofiyD1$nCts0MNF5fFPdVMTCqu.OA3H1MM7w/vqtXPrjwUUrutWDe1ylyaL7shyTB.M8Berc81K9ZNV1W4NevWmtplZq.",
"sshAuthorizedKeys": [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDNw8xaG2GoXp6AqnqN9kVqNTOg/CMOoBjIZHdRK7dFOQDAAanRGo6unAJF+dWKVfPSHKSCwJFuzHfSCCpYmFGvaZ20VY1urAtVLl83GRovbdqLdPY4SGEYhTtiS3VsvW4kFmgWy9oNllVmmmL2+2QnYaXABDFGQt1e+z2cwnF6boXQgnWlRDtct61cbRPTzhpTqiD4gcSgjhhFfW/48zHOi0Koyf8gqUdJgq+NvvASAuB9IsVjgMf+NWY7EDF5ReKTzwfOFO7UDxFZ841vQNC803+CLzo4adzpYRLMj6BcoaWO5kbMz2OsLA9IclFIeuP/Otb6GV6ra/P77tBmi96xG0hlAL6f3s0DtQ6WIQRqohbpXCjCgbHwpmGTIddu0ROEn/NZCkBjIDGJCqsSy0cdgXEoNmBYr8E1lVieJTK6JwProHdZKnKSJjQ8XLtYC8jwp4tFcpyi+JEgS8azW/kq4V7lTjMq+iGznHTHbQ5vVuK4FVUlrpey4AS/BYgRyDYMsbQp9DCV7QayZOp8FBABIq2glGX8oEp8CcLvXpAXKXtKIdk+kOrf3UDx+/o6NbGosZCZxICun7UYTQAENIh/zlpSF9UJA60KJYJh2ppkXsVBQPHCOqXgk9SLV5kgfAM3lJ28gIFVyVYNg74977TVBrxOEdZGz2oHe24ckLJLpw=="
]
},
{
"groups": [
"wheel",
"sudo",
"docker"
],
"name": "admin",
"passwordHash": "$y$j9T$mwL7F2Ugrx5DsMSomtR15.$0cNfoWrc6I/o8zg2XxgSYcvFWl5t.bd.Hqou9OKwvE1"
}
]
},
"storage": {
"files": [
{
"contents": {
"source": "data:,CoreOS%0A"
},
"mode": 420,
"path": "/etc/hostname"
},
{
"contents": {
"source": "data:,%23%20Tell%20systemd%20to%20not%20use%20a%20pager%20when%20printing%20information%0Aexport%20SYSTEMD_PAGER%3Dcat%0A"
},
"mode": 420,
"path": "/etc/profile.d/systemd-pager.sh"
},
{
"contents": {
"source": "data:,%23%20Raise%20console%20message%20logging%20level%20from%20DEBUG%20(7)%20to%20WARNING%20(4)%0A%23%20to%20hide%20audit%20messages%20from%20the%20interactive%20console%0Akernel.printk%3D4%0A"
},
"mode": 420,
"path": "/etc/sysctl.d/20-silence-audit.conf"
},
{
"contents": {
"source": "data:,%23%20Enable%20SSH%20password%20login%0APasswordAuthentication%20yes%0A"
},
"mode": 420,
"path": "/etc/ssh/sshd_config.d/20-enable-passwords.conf"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment