SSH接続の設定

Qt Creator とデバイス間の接続を保護するために、コンピュータにOpenSSHスイートをインストールします。このスイートには、sshsftp 、およびssh-keygen ツールが含まれています。

SSH接続は、可能であればマスターモードで動作するOpenSSHクライアントを介して確立されます。 デフォルトでは、1つのSSH接続上で複数のセッションが共有されます。一度接続を確立し、その後の実行およびデプロイ手順でそれを再利用することで、特に組み込みデバイスにおいて、接続確立のオーバーヘッドを削減できます。Windowsでは接続の共有がサポートされていないため、デプロイまたは実行手順ごとに新しいSSH接続が作成されます。

ツールがインストールされているディレクトリへのパスを設定するには:

  1. [Preferences ] > [Devices ] > [SSH] に移動します。

    「デバイス」環境設定の「SSH」タブ

  2. Enable connection sharing 」のチェックを外すと、デプロイおよび実行手順ごとに新しい SSH 接続が作成されます。このオプションは、接続共有がサポートされていない Windows ではグレーアウトされます。
  3. Connection sharing timeout 」で、SSH接続を再利用する際のタイムアウトを分単位で指定します。
  4. [Path to ssh executable] で、OpenSSH 実行ファイルがインストールされているディレクトリのパスを入力します。
  5. [Path to sftp executable] で、SFTP 実行ファイルがインストールされているディレクトリのパスを入力します。
  6. Path to ssh-askpass executable で、ssh-askpass 実行ファイルがインストールされているディレクトリのパスを入力します。通常、Qt Creator に同梱されているツール qtc-askpass を指すデフォルトのパスを使用できます。
  7. Path to ssh-keygen executable には、ssh-keygen 実行ファイルがインストールされているディレクトリのパスを入力します。

「手順:リモート Linux 向けの開発」および「リモート Linux デバイス向けの開発も参照してください

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.