← 返回命令列表

Linux command

cockpit-desktop 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Open

cockpit-desktop [url] [SSH_host]

Example

cockpit-desktop /cockpit/@localhost/storage/index.html

说明

cockpit-desktop provides secure access to Cockpit server management pages from within a local desktop session without exposing any network ports. It launches cockpit-ws and a web browser inside an isolated network namespace, along with cockpit-bridge in the user's session. The network namespace isolation ensures that the Cockpit web service is only accessible to the locally spawned browser, eliminating the security surface of a listening network socket. This is ideal for single-user workstations where full Cockpit network service is unnecessary. An optional SSH host argument allows managing remote machines through the local desktop interface, with the SSH connection providing the transport layer instead of a direct network service.

FAQ

What is the cockpit-desktop command used for?

cockpit-desktop provides secure access to Cockpit server management pages from within a local desktop session without exposing any network ports. It launches cockpit-ws and a web browser inside an isolated network namespace, along with cockpit-bridge in the user's session. The network namespace isolation ensures that the Cockpit web service is only accessible to the locally spawned browser, eliminating the security surface of a listening network socket. This is ideal for single-user workstations where full Cockpit network service is unnecessary. An optional SSH host argument allows managing remote machines through the local desktop interface, with the SSH connection providing the transport layer instead of a direct network service.

How do I run a basic cockpit-desktop example?

Run `cockpit-desktop [url] [SSH_host]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more cockpit-desktop examples?

This page includes 2 examples for cockpit-desktop, plus related commands for nearby Linux tasks.