Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Max Shaw maxshaw

🏠
Working from home
View GitHub Profile
@maxshaw
maxshaw / instructions.md
Created Feb 21, 2019 — forked from zentralwerkstatt/instructions.md
SSH into Linux Subsystem for Windows
View instructions.md
  • In /etc/ssh/sshd_conf, set UsePrivilegeSeparation to no
  • In /etc/ssh/sshd_conf, temporarily enable plaintext passwords
  • In /etc/ssh/sshd_conf, change port (e.g. to 23) to avoid confusion with Windows SSH server
  • sudo service ssh restart
  • Add alternative port as a new rule to Windows firewall
  • On the client: ssh-copy-id user@server
  • In /etc/ssh/sshd_conf, re-disable plaintext passwords

To fix Could not load host key ... error:

  • sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
@maxshaw
maxshaw / Uninstall-pkg.md
Created Jan 10, 2017 — forked from githubutilities/Uninstall-pkg.md
Uninstall pkg manually in OS X
View Uninstall-pkg.md

Mac Uninstall pkg Manually

  • using pkgutil
# list all your installed packages
pkgutil --pkgs

# show your package info
pkgutil --pkg-info <your-package-id>
You can’t perform that action at this time.