3
3
{% block title %}{% trans "Secure SSH - CyberPanel" %}{% endblock %}
4
4
{% block content %}
5
5
6
- {% load static %}
7
- {% get_current_language as LANGUAGE_CODE %}
8
- <!-- Current language: {{ LANGUAGE_CODE }} -->
9
-
10
-
11
- < div class ="container ">
12
- < div id ="page-title ">
13
- < h2 > {% trans "Secure SSH" %} - < a target ="_blank " href ="http://go.cyberpanel.net/ssh-docs " style ="height: 23px;line-height: 21px; " class ="btn btn-border btn-alt border-red btn-link font-red " title =""> < span > {% trans "SSH Docs" %}</ span > </ a > </ h2 >
14
- < p > {% trans "Secure or harden SSH Configurations." %}</ p >
15
- </ div >
6
+ {% load static %}
7
+ {% get_current_language as LANGUAGE_CODE %}
8
+ <!-- Current language: {{ LANGUAGE_CODE }} -->
9
+
10
+
11
+ < div class ="container ">
12
+ < div id ="page-title ">
13
+ < h2 > {% trans "Secure SSH" %} - < a target ="_blank " href ="http://go.cyberpanel.net/ssh-docs "
14
+ style ="height: 23px;line-height: 21px; "
15
+ class ="btn btn-border btn-alt border-red btn-link font-red "
16
+ title =""> < span > {% trans "SSH Docs" %}</ span > </ a > </ h2 >
17
+ < p > {% trans "Secure or harden SSH Configurations." %}</ p >
18
+ </ div >
16
19
17
- < div ng-controller ="secureSSHCTRL " class ="panel ">
20
+ < div ng-controller ="secureSSHCTRL " class ="panel ">
18
21
< div class ="panel-body ">
19
22
< h3 class ="content-box-header ">
20
23
{% trans "Secure SSH" %} < img ng-hide ="secureSSHLoading " src ="{% static 'images/loading.gif' %} ">
@@ -37,159 +40,156 @@ <h3 class="content-box-header">
37
40
</ ul >
38
41
< div class ="tab-content ">
39
42
< div class ="tab-pane fade active in " id ="tab-example-1 ">
40
- < div class ="example-box-wrapper ">
43
+ < div class ="example-box-wrapper ">
41
44
42
45
43
- < form action ="/ " class ="form-horizontal bordered-row ">
46
+ < form action ="/ " class ="form-horizontal bordered-row ">
44
47
45
48
46
- < div ng-hide ="emailDetails " class ="form-group ">
47
- < label class ="col-sm-3 control-label "> {% trans "SSH Port" %}</ label >
48
- < div class ="col-sm-6 ">
49
- < input type ="text " class ="form-control " ng-model ="sshPort " required >
50
- </ div >
49
+ < div ng-hide ="emailDetails " class ="form-group ">
50
+ < label class ="col-sm-3 control-label "> {% trans "SSH Port" %}</ label >
51
+ < div class ="col-sm-6 ">
52
+ < input type ="text " class ="form-control " ng-model ="sshPort " required >
53
+ </ div >
51
54
52
- </ div >
55
+ </ div >
53
56
54
57
55
- < div class ="form-group ">
56
- < label class ="col-sm-3 control-label "> {% trans "Permit Root Login" %}</ label >
57
- < div class ="col-md-8 text-white ">
58
- < input type ="checkbox " id ="rootLogin " data-toggle ="toggle " data-on ="Enabled ">
59
- < div style ="margin-top: 2%;margin-bottom: -2% " class ="alert alert-warning ">
60
- < p > {% trans "Before disabling root login, make sure you have another account with sudo priviliges on server." %}</ p >
61
- </ div >
62
- </ div >
63
- </ div >
58
+ < div class ="form-group ">
59
+ < label class ="col-sm-3 control-label "> {% trans "Permit Root Login" %}</ label >
60
+ < div class ="col-md-8 text-white ">
61
+ < input type ="checkbox " id ="rootLogin " data-toggle ="toggle "
62
+ data-on ="Enabled ">
63
+ < div style ="margin-top: 2%;margin-bottom: -2% " class ="alert alert-warning ">
64
+ < p > {% trans "Before disabling root login, make sure you have another account with sudo priviliges on server." %}</ p >
65
+ </ div >
66
+ </ div >
67
+ </ div >
64
68
65
- < div class ="form-group ">
66
- < label class ="col-sm-3 control-label "> </ label >
67
- < div class ="col-sm-4 ">
68
- < button type ="button " ng-click ="saveChanges() " class ="btn btn-primary btn-lg "> {% trans "Save Changes" %}</ button >
69
+ < div class ="form-group ">
70
+ < label class ="col-sm-3 control-label "> </ label >
71
+ < div class ="col-sm-4 ">
72
+ < button type ="button " ng-click ="saveChanges() "
73
+ class ="btn btn-primary btn-lg "> {% trans "Save Changes" %}</ button >
69
74
70
- </ div >
71
- </ div >
75
+ </ div >
76
+ </ div >
72
77
73
78
74
- < div class ="form-group ">
75
- < label class ="col-sm-3 control-label "> </ label >
76
- < div class ="col-sm-4 ">
77
- < div ng-hide ="couldNotSave " class ="alert alert-danger ">
78
- < p > {% trans "Error message: " %}{$ errorMessage $}</ p >
79
- </ div >
79
+ < div class ="form-group ">
80
+ < label class ="col-sm-3 control-label "> </ label >
81
+ < div class ="col-sm-4 ">
82
+ < div ng-hide ="couldNotSave " class ="alert alert-danger ">
83
+ < p > {% trans "Error message: " %}{$ errorMessage $}</ p >
84
+ </ div >
80
85
81
- < div ng-hide ="detailsSaved " class ="alert alert-success ">
82
- < p > {% trans "SSH Configurations Saved." %}</ p >
83
- </ div >
84
-
85
-
86
- < div ng-hide ="couldNotConnect " class ="alert alert-danger ">
87
- < p > {% trans "Could not connect. Please refresh this page." %}</ p >
88
- </ div >
89
- </ div >
86
+ < div ng-hide ="detailsSaved " class ="alert alert-success ">
87
+ < p > {% trans "SSH Configurations Saved." %}</ p >
88
+ </ div >
90
89
91
90
92
-
93
- </ div >
94
-
91
+ < div ng-hide ="couldNotConnect " class ="alert alert-danger ">
92
+ < p > {% trans "Could not connect. Please refresh this page." %}</ p >
93
+ </ div >
94
+ </ div >
95
95
96
96
97
- </ form >
97
+ </ div >
98
98
99
99
100
+ </ form >
100
101
101
102
102
- </ div >
103
+ </ div >
103
104
</ div >
104
105
105
106
106
-
107
107
< div class ="tab-pane fade " id ="tab-example-3 ">
108
108
109
- < form action ="/ " class ="form-horizontal bordered-row ">
109
+ < form action ="/ " class ="form-horizontal bordered-row ">
110
110
111
111
<!------ List of records --------------->
112
112
113
- < div class ="form-group ">
114
-
115
- < div class ="col-sm-12 ">
116
-
117
- < table class ="table ">
118
- < thead >
119
- < tr >
120
- < th > {% trans "User Name" %}</ th >
121
- < th > {% trans "Key" %}</ th >
122
- < th > {% trans "Delete" %}</ th >
123
- </ tr >
124
- </ thead >
125
- < tbody >
126
- < tr ng-repeat ="record in records track by $index ">
127
- < td ng-bind ="record.userName "> root</ td >
128
- < td ng-bind ="record.key "> </ td >
129
- < td ng-click ="deleteKey(record.key) "> < div class ="h4 text-danger text-bold "> X</ div > </ td >
130
- </ tr >
131
- </ tbody >
132
- </ table >
133
- </ div >
134
- </ div >
135
-
113
+ < div class ="form-group ">
114
+
115
+ < div class ="col-sm-12 ">
116
+
117
+ < table class ="table ">
118
+ < thead >
119
+ < tr >
120
+ < th > {% trans "User Name" %}</ th >
121
+ < th > {% trans "Key" %}</ th >
122
+ < th > {% trans "Delete" %}</ th >
123
+ </ tr >
124
+ </ thead >
125
+ < tbody >
126
+ < tr ng-repeat ="record in records track by $index ">
127
+ < td ng-bind ="record.userName "> root</ td >
128
+ < td ng-bind ="record.key "> </ td >
129
+ < td ng-click ="deleteKey(record.key) ">
130
+ < div class ="h4 text-danger text-bold "> X</ div >
131
+ </ td >
132
+ </ tr >
133
+ </ tbody >
134
+ </ table >
135
+ </ div >
136
+ </ div >
136
137
137
138
138
- <!------ List of records --------------->
139
+ <!------ List of records --------------->
139
140
140
- < div ng-hide ="keyBox " class ="form-group ">
141
- < div class ="col-sm-12 ">
142
- < textarea placeholder ="Paste your public key here... " ng-model ="keyData " rows ="6 " class ="form-control "> {{ logs }}</ textarea >
141
+ < div ng-hide ="keyBox " class ="form-group ">
142
+ < div class ="col-sm-12 ">
143
+ < textarea placeholder ="Paste your public key here... " ng-model ="keyData "
144
+ rows ="6 " class ="form-control "> {{ logs }}</ textarea >
145
+ </ div >
143
146
</ div >
144
- </ div >
145
147
146
148
147
- < div ng-hide ="showKeyBox " class ="form-group ">
148
- < label class ="col-sm-3 control-label "> </ label >
149
- < div class ="col-sm-4 ">
150
- < button type ="button " ng-click ="addKey() " class ="btn btn-primary btn-lg "> {% trans "Add Key" %}</ button >
149
+ < div ng-hide ="showKeyBox " class ="form-group ">
150
+ < label class ="col-sm-3 control-label "> </ label >
151
+ < div class ="col-sm-4 ">
152
+ < button type ="button " ng-click ="addKey() "
153
+ class ="btn btn-primary btn-lg "> {% trans "Add Key" %}</ button >
151
154
152
- </ div >
153
- </ div >
155
+ </ div >
156
+ </ div >
154
157
155
- < div ng-hide ="saveKeyBtn " class ="form-group ">
156
- < label class ="col-sm-3 control-label "> </ label >
157
- < div class ="col-sm-4 ">
158
- < button type ="button " ng-click ="saveKey() " class ="btn btn-primary btn-lg "> {% trans "Save" %}</ button >
159
- </ div >
160
- </ div >
158
+ < div ng-hide ="saveKeyBtn " class ="form-group ">
159
+ < label class ="col-sm-3 control-label "> </ label >
160
+ < div class ="col-sm-4 ">
161
+ < button type ="button " ng-click ="saveKey() "
162
+ class ="btn btn-primary btn-lg "> {% trans "Save" %}</ button >
163
+ </ div >
164
+ </ div >
161
165
162
- < div class ="form-group ">
163
- < label class ="col-sm-3 control-label "> </ label >
164
- < div class ="col-sm-4 ">
166
+ < div class ="form-group ">
167
+ < label class ="col-sm-3 control-label "> </ label >
168
+ < div class ="col-sm-4 ">
165
169
166
- < div ng-hide ="keyDeleted " class ="alert alert-success ">
170
+ < div ng-hide ="keyDeleted " class ="alert alert-success ">
167
171
< p > {% trans "SSH Key Deleted" %}</ p >
168
- </ div >
172
+ </ div >
169
173
170
174
171
- < div ng-hide ="couldNotConnect " class ="alert alert-danger ">
175
+ < div ng-hide ="couldNotConnect " class ="alert alert-danger ">
172
176
< p > {% trans "Could not connect. Please refresh this page." %}</ p >
177
+ </ div >
178
+ </ div >
173
179
</ div >
174
- </ div >
175
- </ div >
176
-
177
-
178
-
179
180
180
181
181
182
</ form >
182
183
183
184
184
-
185
185
</ div >
186
186
</ div >
187
187
</ div >
188
188
</ div >
189
189
</ div >
190
190
191
191
192
- </ div >
192
+ </ div >
193
193
194
194
195
195
{% endblock %}
0 commit comments