Jackson Ridenour
posted this on January 10, 2011 09:03
This guide explains how to setup an SSH environment in Janova.
Setting up a Linux-Based SSH Server to allow Janova to work behind a firewall.
These instructions are geared towards the Linux distribution of Ubuntu Server 10.4. You can obtain this distribution from the following URL: http://www.ubuntu.com/server/get-ubuntu/download
Once your Ubuntu Server has been rebooted and you’re at a shell prompt, do the following:
Next, we will need to edit SSH configuration file. Type the following at a shell prompt (ex. “$”):
NOTE: We are NOT security experts. These settings are only our recommendations and we don't guarantee that this will make your system secure.
NOTE: We recommend you change Port to something other than the default, for example:
Port 2222
Next, this is required to allow the SSH tunneling:
AllowTcpForwarding yes
Now, save the file (/etc/ssh/sshd_config). Press “Control-x” and then follow the prompt to save.
Next, restart the ssh service:
The following instructions assume that you are logged in as the user that you would like to grant Janova access to. If you need to create a different user you can obtain help by typing "man adduser".
$ mkdir ~/.ssh
$ echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAu6lPYKOitDu4+O0gHWjRBmzaavNrgMiaqZR
ObHDhUgZEXJYiWq3KmT1vzoMoN+PDPEbRTvCmk6y1XXYHIQ0dK4C8VKuCCMjv3MyHxl8lkDQ
RwlZr5P3edhVbMokaw5+vSkqmELmCjH8EHe2OW4Nd3YOrgyLPVMAoYmPmwVCKrJv1EZgUbLoo
JaFoshMqLpWVNwDdZGNDneRDVnflR10KXlmRq5vDbZgOQXm2tXsORtTmWNnFJ9shLoLoACAm
g2OBhWDlQscLxFLP3DvlXTr5HjE2bxWIGiIfTren0+BatBD/x52YMUwUish+rFzoh3xoAY5NnKl9Cuk
lccjJzjDw== brian.lusenhop@janova.us" >> ~/.ssh/authorized_keys
We suggest that you verify that you can login without being prompted for a password. In order to do that we recommend you change PasswordAuthentication to no, which will require you to add your public key to the authorized_keys file and will prevent basic password login:
PasswordAuthentication no
Finally, save the file as before (Control-x and following the prompt) and everything should be set up!