SSH for coders

From FreekiWiki

Jump to: navigation, search

Basic SSH for Coders

Much of the coding at Free Geek is done remotely. In order to edit files on a remote system you need to gain access to it. This is done using a program called ssh (for secure shell) which is similar to telnet but hides your username and password from others.

For example, llama is the computer most often used for developing the FGdb application. In order to get to llama from a linux system you would need an account on llama (an ASS can set you up with one). Then you could open up a terminal on your linux box and type the following:

 ssh USERNAME@llama.freegeek.org

...where you would subsitute your actual username on llama for the word USERNAME. The ssh server would then ask you for your password, and if all is well, you'd be given a command line interface on llama.

Some notes

  • The first time you connect the ssh server will display a fingerprint for the box you're connecting to. If you trust that your connection isn't being intercepted by some nefarious person, you have to type 'yes' this first time.
  • If you're inside Free Geek you don't need to type in '.freegeek.org' in your ssh command. That is you can type ssh USERNAME@llama.
  • Wireless connections count as outside.
  • In general, you will be editing text files from the command line, so you need to know how to use a text editor for ssh to be of much use to you. (See Text Editing for Coders for more information.) Using a GUI text editor generally doesn't work via an ssh connection.