| 1 |
[[multi-host]] |
| 2 |
= Managing multiple hosts at the same time |
| 3 |
|
| 4 |
[WARNING] |
| 5 |
==== |
| 6 |
This feature is deprecated as of Cockpit 322. |
| 7 |
==== |
| 8 |
|
| 9 |
Cockpit allows you to access multiple hosts in a single session, by |
| 10 |
establishing SSH connections to other hosts. This is quite similar to |
| 11 |
logging into these other hosts using the `+ssh+` command on the command |
| 12 |
line, with one very important difference: |
| 13 |
|
| 14 |
Code from the local host and all the remote hosts run at the same time, |
| 15 |
in the same browser context. They are not isolated from each other in |
| 16 |
the browser. All code effectively has the same privileges as the primary |
| 17 |
session on the local host. |
| 18 |
|
| 19 |
Thus, _you should only only connect to remote hosts that you trust_. You |
| 20 |
must be sure that none of the hosts that you connect to will cause |
| 21 |
Cockpit to load malicious JavaScript code into your browser. |
| 22 |
|
| 23 |
Therefore, Cockpit will warn you before connecting to more than one |
| 24 |
host. It is also possible to disable multiple hosts entirely, and some |
| 25 |
operating systems do this already by default. |
| 26 |
|
| 27 |
You can prevent loading of JavaScript, HTML, etc from more than one host |
| 28 |
by adding this to `+cockpit.conf+`: |
| 29 |
|
| 30 |
.... |
| 31 |
[WebService] |
| 32 |
AllowMultiHost=false |
| 33 |
|
| 34 |
.... |
| 35 |
|
| 36 |
When you allow multiple hosts in a single Cockpit session by setting |
| 37 |
`+AllowMultiHost+` to true, then the user will be warned once per |
| 38 |
session, before connecting to the second host. If that is still too |
| 39 |
much, you can switch the warning off completely by adding the following |
| 40 |
to `+cockpit.conf+`: |
| 41 |
|
| 42 |
.... |
| 43 |
[Session] |
| 44 |
WarnBeforeConnecting=false |
| 45 |
.... |