sshHostCommands

settings.json型object[]記述場所ユーザー設定または管理者設定

コマンドからホストを取得する SSH 接続を Desktop の環境セレクターに追加する。接続を作成したり、その接続用に別のマシンを作成したりすると、Desktop がそのエントリのコマンドを自分のコンピュータ上で実行し、コマンドが出力したホストに接続する。

記述例

{
  "sshHostCommands": [
    {
      "id": "devbox",
      "name": "Dev box",
      "command": "acme-dev create"
    }
  ]
}

使い方・用途

  • チーム全員の Desktop 環境セレクターに同じ開発マシンへの SSH 接続を、managed settings や MDM ポリシーで配布して表示させたい。
  • 接続先ホストが動的に変わる開発環境を、自分の PC 上でコマンドを実行してその出力のホストに Desktop 接続させたい。
  • Desktop 環境セレクターにユーザー自身に編集や削除をさせたくない固定の SSH 接続エントリを管理者として提供したい。
英語原文

Add SSH connections whose host comes from a command to the Desktop environment selector. When you create a connection or create another machine for it, Desktop runs the entry's command on your computer and connects to the host that the command prints.

関連ドキュメント