Change security advice

This commit is contained in:
Bob Mottram 2016-11-23 21:03:44 +00:00
parent a12bde8c89
commit 14f5a8859a
1 changed files with 12 additions and 35 deletions

View File

@ -42,39 +42,22 @@
| [[Adding or removing users]] |
| [[./app_pihole.html][Blocking Ads]] |
* Securing your system
There are a few things you can do to maximise the security of your system.
** Use ssh keys rather than passwords
* Improving security
It's a lot more secure to log in to the Freedombone system using ssh keys rather than with a password. You can set that up by first running:
* Improving ssh security
To improve ssh security you can generate an ssh key pair on your system and then upload the public key to the Freedombone.
#+begin_src bash
freedombone-client
#+end_src
On your local machine:
On your local system (i.e. whatever you're logging in to the Freedombone system from, typically a laptop). Then:
#+BEGIN_SRC bash
ssh-keygen
#+END_SRC
#+begin_src
ssh myusername@freedombone.local -p 2222
#+end_src
For extra security you may also want to add a passphrase to the ssh private key. You can show the generated public key with:
#+BEGIN_SRC bash
cat ~/.ssh/id_rsa.pub
#+END_SRC
Log into your system and open the control panel.
#+BEGIN_SRC bash
ssh username@domain -p 2222
#+END_SRC
Select /Administrator controls/ then /Manage Users/ then /Change user ssh public key/. Copy and paste the public key here, then exit.
It's a good idea to also copy the contents of *~/.ssh/id_rsa* and *~/.ssh/id_rsa.pub* to you password manager, together with the private key password if you created one.
There are advantages and disadvantages to using ssh keys for logins. The advantage is that this is much more secure than a memorised password, but the disadvantage is that you need to carry your ssh keys around and be able to install them on any computer of mobile device that you use. In high security or hostile infosec environments it may not be possible to carry or use USB thumb drives containing your keys and so memorised passwords may be the only available choice.
If you wish to only use ssh keys then log in to the Freedombone, become the root user and open the control panel with the 'control' command. Select /Security Settings/ then keep hitting enter until you reach the question about allowing password logins. Select "no" for that, then apply the settings. Any subsequent attempts to log in via a password will then be denied.
Select *Administrator controls* and re-enter your password, then *Manage Users* and *Change user ssh public key*. Copy and paste the ssh public keys which appeared after the *freedombone-client* command was run. Then go to *Security settings* and select *Allow ssh login with passwords* followed by *no*.
You'll need to make sure that you have a copy of the ~/.ssh directory on your local system. You could just copy that directory to a USB drive and then keep that somewhere safe so that you can restore the keys if you need to.
* Administrating the system via an onion address (Tor)
You can also access your system via the Tor system using an onion address. To find out what the onion address for ssh access is you can do the following:
@ -88,13 +71,7 @@ Select /Administrator controls/ then select "About this system" and look for the
freedombone-client
#+END_SRC
This will set up your ssh environment to be able to handle onion addresses. In addition if you use monkeysphere then you can do:
#+BEGIN_SRC bash
freedombone-client --ms yes
#+END_SRC
Then you can test ssh with:
This will set up your ssh environment to be able to handle onion addresses. Then you can test ssh with:
#+BEGIN_SRC bash
ssh username@address.onion -p 2222