浏览代码

Change security advice

Bob Mottram 8 年前
父节点
当前提交
14f5a8859a
共有 1 个文件被更改,包括 12 次插入35 次删除
  1. 12
    35
      doc/EN/usage.org

+ 12
- 35
doc/EN/usage.org 查看文件

@@ -42,39 +42,22 @@
42 42
 | [[Adding or removing users]]                             |
43 43
 | [[./app_pihole.html][Blocking Ads]]                                         |
44 44
 
45
-* Securing your system
46
-There are a few things you can do to maximise the security of your system.
47
-** Use ssh keys rather than passwords
45
+* Improving security
46
+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:
48 47
 
49
-* Improving ssh security
50
-To improve ssh security you can generate an ssh key pair on your system and then upload the public key to the Freedombone.
51
-
52
-On your local machine:
53
-
54
-#+BEGIN_SRC bash
55
-ssh-keygen
56
-#+END_SRC
57
-
58
-For extra security you may also want to add a passphrase to the ssh private key. You can show the generated public key with:
59
-
60
-#+BEGIN_SRC bash
61
-cat ~/.ssh/id_rsa.pub
62
-#+END_SRC
63
-
64
-Log into your system and open the control panel.
65
-
66
-#+BEGIN_SRC bash
67
-ssh username@domain -p 2222
68
-#+END_SRC
69
-
70
-Select /Administrator controls/ then /Manage Users/ then /Change user ssh public key/. Copy and paste the public key here, then exit.
48
+#+begin_src bash
49
+freedombone-client
50
+#+end_src
71 51
 
72
-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.
52
+On your local system (i.e. whatever you're logging in to the Freedombone system from, typically a laptop). Then:
73 53
 
74
-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.
54
+#+begin_src
55
+ssh myusername@freedombone.local -p 2222
56
+#+end_src
75 57
 
76
-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.
58
+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*.
77 59
 
60
+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.
78 61
 * Administrating the system via an onion address (Tor)
79 62
 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:
80 63
 
@@ -88,13 +71,7 @@ Select /Administrator controls/ then select "About this system" and look for the
88 71
 freedombone-client
89 72
 #+END_SRC
90 73
 
91
-This will set up your ssh environment to be able to handle onion addresses. In addition if you use monkeysphere then you can do:
92
-
93
-#+BEGIN_SRC bash
94
-freedombone-client --ms yes
95
-#+END_SRC
96
-
97
-Then you can test ssh with:
74
+This will set up your ssh environment to be able to handle onion addresses. Then you can test ssh with:
98 75
 
99 76
 #+BEGIN_SRC bash
100 77
 ssh username@address.onion -p 2222