Skip to content

Instantly share code, notes, and snippets.

View rharmonson's full-sized avatar
🎯
Focusing

techore rharmonson

🎯
Focusing
  • USA
View GitHub Profile
@rharmonson
rharmonson / secure-ssh.yml
Created May 7, 2020 05:01 — forked from cmavr8/secure-ssh.yml
Secure SSH configuration ansible playbook
---
# SSH server settings, in line with https://stribika.github.io/2015/01/04/secure-secure-shell.html
# Before using, change myhosts to your hosts' nickname and myuser to your username (two instances! make sure you replace both or you'll be locked out of ssh!)
- hosts: myhosts
become: true
remote_user: myuser
tasks:
# Key exchange, ciphers and MACs
- lineinfile: dest=/etc/ssh/sshd_config regexp='^KexAlgorithms' line='KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256'
@rharmonson
rharmonson / tmux-cheatsheet.markdown
Created April 3, 2018 03:33 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname