Secure Connections with SSH Keys

Importing Keys

Import your private SSH Keys from iTunes ...

...or copy the content of a private SSH key to your iOS device's clipboard so that Screens can add it automatically when you launch the app. Here's an example of valid key content.

-----BEGIN RSA PRIVATE KEY-----

MIIEpQIBAAKCAQAA4ILaNzKCNtXXm58ddIqeRs5isu7Xx0t/U5jvmabFQ25Lua4P

sIGSnwI0brq19QiitMLyc72ZBOPm9ZgBuZdDgp3HcMmZqudy5WlM7vRMcoXN/x6X

7loaMKJiwy103vemMcxst9y867G2Gm5geScpj27Htj90C2w1JeXxxHhaJry6dzBP

NoBqHRyiLbMEYpCZT0y30X9wwq5rlC7wEXIsWPm59qTnXodIT3ger9TOhctXzhLG

X6fOUy+Lg3b6uSbdf8xrZA/+kV7Kd83yH4hZx/l1q5ok9hQcnTpL/OBvsEl4w/Qy

qoYWQqRjseh7EkMd0/ueSlmq6pGVdbofWd46xwIDAQABAoIBAQDOTjJhAAVpzknp

VEWXmnUYo9EdvW3uDIl0qhpI9AmM2+1HLD2Lkr6du89YZaEFPm4TlmyFsrYuKBcW

YYADpizIUFue/06g4efSEOGkkrXPU7Z14KaennfwVoz2NFoqnSJFZw+0OXYbQWmx

cuEZmHU+t5NrxBQK99MFwQugGEWoBKAO+RopCMyuHCiJx86Gpahp1oZVdbskC5QE

XovCosw5GvOxKt19rDElU09U26fvEm2GgBnZzx1J/EIA9UCLko6YXBWCKLWCVzR0

F0IpWsTJ6Bnzq3+ZR1kJ/mq55kLu9tRE6/kfRwDC77W9uQaOJItLnZvWCxQcbLX+

GM1tYTRRAoGBAO3URalm3MmxVR5Dx+1QNqyu0YVH5sTwabWph0lC3ruWnav9sKnH

ULQ7Bg2kOdUQ8mn8gvf0kHe0PoSCqvv/tDbJHTHLzdpYpg5Hxclln6SsoG+14Z6+

+PxBSncjmGAOcFBAPWveHxn99QaLTU7ejmoqc0M/nI+wr/O0pE4Nc77PAoGBAO1b

2sxY5dM0MSLEL5ptv7svzWBbE5Komfm5wutFPXMOU28ILbV8jUwbNRoxQcxMjSfZ

dnQJ+zKGs9HNZCX3rI05f261y/X01sBOqXx7Rxg/VGocQoQzGAbwd17w3fVZQGaS

KtiJpBSUnMGrkKvE5p5Ce1GjAufy54VxenDheIKJAoGBAMufdfE/J4PsN3NNFyyh

A96/YpYZZIRzTh6CQllATpEPuHlcIFiMVRWqf1lIpVc+Rj7mOn/vPY2vneM4OQq+

+F37vOo4k0wBoFMTskznnFKSll5uu/h9i5H2mLn+mOSNGC4tgikLqVdIrvPmas8/

D3HoXH1URkhkP5GJtS86p0HTAoGAVisyk1zykmowLF7sqTOOl3YTKRfnUybCP1ag

3KiWVl6tC3H8phZBdY+rB4c6S+C+nejkh9vXxdABF/lokiAIFHz7NkXpdbEdBVOJ

VBetB7B2BM+dlkC2SE6kB2OKMLfmGVaXF2Vgm9gX0HdoXfNthaa8/jYfp/UW9+rq

eHBiP4ECgYEAw8of9Uyn9UPYk9ikdoMnp9RgVKVFqul+rfyK2ovkz/JkRWsWdNG6

Q6Fjex2RKmYzwgbA9UTookBdeyrMiN3seQixi+fvyWlQ6XSbxvVqbO2hlHRqnVAK

UQVZlBkk4lHs0X0rSIKuRnshOx8wdyP1ZEodbTR83MpWcQtdWwW8L4w=

-----END RSA PRIVATE KEY-----

Note: Only private keys can be imported. Screens can recreate a public key from a private key on the fly so you do not need to import those. Trying to import a public key will fail.

SSH keys are managed from Screens' app settings, under SSH Keys.

Using a SSH Key in Screens

Screens can be configured to use SSH keys to establish a secure network connection. Network traffic between Screens and the remote computer will then be transferred via an encrypted SSH tunnel.

  • Open your "screen" settings.
  • Enable Secure Connection.
  • Tap Advanced.

  • Tap the Key button to select a key from the list.

The Key button turns to a solid purple when a SSH Key has been selected. Screens also informs you if the key requires a password or not.

Creating a Key Pair

You can use your Mac's ssh-keygen command-line tool in Terminal to create a private and a public key.

  • Open Terminal.
  • Type the following command at the prompt:

    • ssh-keygen -N "" -f MyKey && open .

  • You can replace MyKey with any name you like. This is used to identify the key in Screens.

  • Finder will open a new window. You will find the two files (MyKey is the private key and MyKey.pub public key) inside the folder.

  • Copy the public key to the remote computer.
  • Append the public key to the list of authorized keys. You can do this with the following command in Terminal (replace my_username with the user you would like to use in Screens):

    • cat MyKey.pub >> \/Users\/my_username\/.ssh\/authorized_keys

  • You can now use the private key to authenticate.

  • If you already have a private key without a public key, you can create the public key with the following command in Terminal:

    • ssh-keygen -y -f MyKey > MyKey.pub

results matching ""

    No results matching ""