Assets
Create, edit, copy and import SSH, RDP, VNC, Telnet and Kubernetes assets, manage several sign-in accounts per asset, test connectivity, reset host keys and change owners.
Resources > Assets (资源管理 > 资产管理) lists every asset the bastion manages, with its name, protocol, network address, online status, owner and last access time. The online status is refreshed by the asset status check in Scheduled jobs.
Asset passwords and private keys are stored encrypted and never shown again on the page. Ordinary users only see the assets authorised for them, under My assets, and never see their addresses.
Create an asset
Prerequisites
- A role that includes creating assets.
- The asset count is below the licence limit; see Editions.
Steps
- Select New asset (新建资产).
- Enter a Name, pick a Protocol, and enter the Host address (IP or domain name) and Port. The port defaults to the protocol's standard port: SSH 22, RDP 3389, VNC 5900, Telnet 23, Kubernetes 6443.
- Pick an Account type and fill in the default sign-in account:
- Password: enter the Username and Password.
- Key (SSH only): enter the Username and Private key, plus the Passphrase if it has one.
- Credential: pick a credential.
- (Optional) If the bastion cannot reach the asset directly, pick a gateway under Access gateway; the default is direct connection. See Access gateways.
- (Optional) Enter Tags (separated by commas) and a Note, and set the protocol's advanced attributes as needed, described below.
- Select Save.
Kubernetes assets have no account. Instead, under Container, enter the Namespace (default if empty), the Pod (required) and the Container (the first container if empty).
Advanced protocol attributes
| Protocol | Attribute groups | Contents |
|---|---|---|
| SSH | Terminal display, SOCKS proxy | Colour scheme, font name and size, backspace mapping, terminal type; reaching the asset through a SOCKS proxy |
| RDP | Network drive mapping, display, authentication, RemoteApp, pre-connection | Turn on drive mapping and pick the mapped space; colour depth, lossless compression; domain; start a single program; pre-connection ID for Hyper-V and similar |
| VNC | Display, VNC repeater | Colour depth, cursor; target host and port when connecting through a VNC repeater such as UltraVNC Repeater |
| Telnet | Terminal display, automatic sign-in | Colour scheme, font; regular expressions for the username and password prompts and for sign-in success and failure |
| Kubernetes | Certificates | Use SSL, skip certificate verification, CA certificate, client certificate and private key |
With drive mapping on, an RDP session shows a mapped drive in the remote desktop, and files can also be uploaded and downloaded through Files during the session. If no mapped space is chosen, the space of the user who opens the session is used; see Disk spaces.
Manage the accounts on an asset
The account in the asset form is the default account. You can add more sign-in accounts to an asset, such as root and an ordinary operations account. Users pick from the accounts they are authorised for when they connect, and an authorisation can restrict the usable accounts by username; see Asset authorisation.
Steps
- In the asset row's actions, select Accounts (账号管理). Kubernetes assets do not have this action.
- Select Add account, enter a Name (the username is used if empty), pick an Authentication method (password, key or credential), and enter the Username with the matching password or private key.
- Select Save.
Only the creator of a credential or the super administrator can bind that credential to an account. Deleting an account does not affect sessions already online.
Import in bulk
Steps
- Select Import > Download CSV template (导入 > 下载 CSV 模板).
- Fill in one asset per row, with no header row. The columns are, in order: name, protocol, host address, port, username, password, private key, passphrase, note, tags. Separate multiple tags with
|. - Select Import > Import from CSV file (从 CSV 文件导入) and choose the completed file.
When the import finishes, it reports how many rows succeeded and failed, with the reason for each failed row. The asset limit is checked against the number of valid rows first, and the whole import is rejected if it would be exceeded.
Other actions
Actions in an asset row:
| Action | Description |
|---|---|
| Access (接入) | Opens a terminal or remote desktop; see Accessing assets |
| Edit | Changes the asset. Leave a saved password or private key empty to keep it |
| Copy | Creates a new asset from this one. Passwords and private keys are not copied |
| Accounts | See above |
| Change owner (更换所有者) | Transfers the asset to another user |
| Connectivity test (连通性测试) | Checks whether the bastion can reach the asset |
| Reset host key (重置主机密钥, SSH only) | Clears the recorded SSH host key so that the next connection records it again. Do this only after confirming that the target was reinstalled or its key changed |
| Authorise (授权) | Sets the users and user groups that can reach the asset |
| Delete | Deletes the asset and its authorisations. This cannot be undone |
You can select several assets and delete them together.