Skip to content

Instantly share code, notes, and snippets.

@jeff-r
Created February 11, 2018 00:14
Show Gist options
  • Select an option

  • Save jeff-r/d193520995de6eafa12f9210079fe92e to your computer and use it in GitHub Desktop.

Select an option

Save jeff-r/d193520995de6eafa12f9210079fe92e to your computer and use it in GitHub Desktop.
#cloud-config
users:
- name: jeff
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDm3WW3XM9TIdhUFwqXHrN9oEMjBLJTa48RUICUDLW6OyG4Mzhu3baKegFqbTIM0WF8pUGqQz0aSTdvtceqxKYqm/6q/pv/z1kGo6aUUACvTh6E3bpjp4jzO5gOlImhTGvxnkpJA9tBvQU1rICOnMhZuDytv6flMtd5KY+boGIQ89ONO2CuvZ5svXZfok0hABRoTrw8e92mOhHIN5CmtpNlyfuOu+m4DB59TCHK+SaEkbxYkuXH9YrkWdDXGyNeEKiMKTpfYBTBnz1PC2zSDus6CyGkoky6tLJPisxUfJWbCStS96k50ywm2uvGqhIwWz2EYvV4hyy0u25MCx6/paSZ jeff@jeffroush.com
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: sudo
shell: /bin/bash
write_files:
- path: /etc/ssh/sshd_config
content: |
Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 1024
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
AllowUsers jeff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment