Enable SSH Access

1. Create public/private key pair

  $ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

2. Copy the contents of the id_rsa.pub file to the clipboard

  $ pbcopy < ~/.ssh/id_rsa.pub

3. Create config file

  $ cd ~/.ssh
  $ cat >> config
  Host 192.168.1.1
    IdentityFile ~/.ssh/id_rsa

If remote-editing (using Sublime Text, TextMate, or VS Code) is desired, modify config to resemble:

  Host 192.168.1.1
    IdentityFile ~/.ssh/id_rsa
    RemoteForward 52698 localhost:52698

4. Press ⌃+D to end editing

Turris configuration

1. Connect to Turris

  $ ssh root@192.168.1.1

2. Create authorize_keys file

  # mkdir ~/.ssh
  # chmod 0700 ~/.ssh
  # cat >> ~/.ssh/authorized_keys

3. Press ⌘+V to paste the contents of clipboard into authorized_keys

4. Press ⌃+D to end editing

5. Set file permissions

  # chmod 0600 ~/.ssh/authorized_keys