SSH Tutorial

The end goal of this tutorial is to make a key pair. That’s a set of two files full of numbers and letters. One file is public (your public key) and the other private (your private key). You’ll be submitting the public key in the sign-up form and using the private key when you connect to yourtilde.com using ssh.

Windows

We’ll be using a tool called cmder, which is a rather nice terminal that provides ssh stuff for you, too. ## generating your keypair

Download a zipped copy of cmder. Extract cmder.zip Run the extracted Cmder.exe You should see a Cmder terminal window that looks sort of like this:

copy and paste the following (paste by right clicking) into the Cmder window and hit Enter:

  mkdir .ssh || ssh-keygen -t rsa -b 2048 -f .ssh/yourtilde

If it prompts to make a passphrase, just hit enter.

Copy and paste the following (paste by right clicking) into Cmder:

   cat ~/.ssh/yourtilde.pub

Copy the block that was output starting with ssh-rsa and paste it in the “SSH public key” field on the sign up form (copy by highlighting the text and pressing control + c). The other file that was generated (.ssh/yourtilde) is your private key. Treat it like a password and never share it with anyone.

using your key

Once ~deepend or another admin approves your sign-up, you can connect to yourtilde.com.

Open Cmder, which we unzipped in the last section. Type the following in the Cmder window and hit Enter:

 ssh -i ~/.ssh/yourtilde YOURUSERNAME@yourtilde.com

Replace YOURUSERNAME with the username you signed up with. For example, if your username is steven_andy, you would run this command:

      ssh -i ~/.ssh/yourtilde steve_andy@yourtilde.com
    

Mac OSX

generating your keypair

Open Terminal (in /Applications/Utilities). In the Terminal window, copy and paste the following and press Enter:

 mkdir -m 700 ~/.ssh                          # Create your .ssh directory
 ssh-keygen -t rsa -b 2048 -f ~/.ssh/yourtilde  # Create your keys

Say no when it asks if you want to set a passphrase. In the Terminal window, copy and paste the following and press Enter:

 cd ~/.ssh          # Go to the .ssh folder in your home folder
 cat yourtilde.pub # Outputs the content of your public key

Copy the block that was output in Terminal starting with ssh-rsa and paste it in the “SSH public key” field on the sign up form. The other file that was generated (~/.ssh/yourtilde) is your private key. Treat it like a password and never share it with anyone.

using your keypair

Once ~deepend or another admin approves your sign-up, you can connect to yourtilde.com.

Open Terminal (in /Applications/Utilities). Type the following in the Terminal window and hit Enter:

 ssh -i ~/.ssh/yourtilde YOURUSERNAME@yourtilde

Replace YOURUSERNAME with the username you signed up with. For example, if your username is steve_andy, you would run this command:

      ssh -i ~/.ssh/yourtilde steve_andy@yourtilde.com
    

Linux There are lots of different Linux distributions out there but they should all have ssh, ssh-keygen, and a terminal program.

generating your keypair

Open a terminal. in the terminal window, copy and paste the following and press Enter:

 mkdir -m 700 ~/.ssh                           # Create a folder called .ssh. It's okay if it already exists.
 ssh-keygen -trsa -b 2048 -f ~/.ssh/yourtilde # create the keypair

Say no when it asks if you want to set a passphrase (Slight disagreement here from an infosec person: set a passphrase, for a bit more security. But, don’t lose it! Nobody can retrieve it for you!) in the terminal window, copy and paste the following and press Enter:

 cd ~/.ssh          # Go to the .ssh folder in your home folder
 cat yourtilde.pub # Output the content of your public key

Copy the block that gets output in the terminal starting with ssh-rsa and paste it in the SSH public key field on the signup form. The other file that was generated (~/.ssh/yourtilde) is your private key. Treat it like a password and never share it with anyone.

using your keypair

Once ~deepend or another admin approves your sign-up, you can connect to yourtilde.com.

Open your terminal program. Type the following in the terminal window and hit Enter:

 ssh -i ~/.ssh/yourtilde YOURUSERNAME@yourtilde.com

Replace YOURUSERNAME with the username you signed up with. For example, if your username is steve_andy, you would run this command:

      ssh -i ~/.ssh/yourtilde steve_andy@yourtilde.com
    

**IMPORTANT! this tutorial is copied basically in whole from tilde.town ssh primer

  • ssh_primer.txt
  • Last modified: 2018/07/06 23:29
  • by deepend