Skip to content

Instantly share code, notes, and snippets.

@noqqe
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noqqe/9133210 to your computer and use it in GitHub Desktop.
Save noqqe/9133210 to your computer and use it in GitHub Desktop.
Puppet Rescue Kit when your sshd is broken ;) Tested with ubuntu.
package { "telnetd":
ensure => "installed",
}
service { "openbsd-inetd":
ensure => running,
require => Package["telnetd"],
}
user { "user":
ensure => present,
password => '$6$hashhashhash',
}
package { "telnetd":
ensure => "purged",
}
service { "openbsd-inetd":
ensure => stopped,
}
user { "user":
ensure => absent,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment