生成 SSH 密钥

要保护Qt Creator 与设备之间的连接,请使用OpenSSH

如果没有 SSH 公钥和私钥对,可以在Qt Creator 中生成。连接向导可以为您创建密钥对,您也可以单独创建。

你可以指定密钥长度和密钥算法(RSA 或 ECDSA)。如果只用密钥保护与模拟器或设备的连接,可以使用默认值。

  1. 转到首选项>Devices >Devices
  2. 选择Create New

    SSH 密钥配置对话框

  3. Private key file 中,选择保存私钥的位置。Public key file 显示保存相应公钥的位置。
  4. 选择Generate And Save Key Pair ,在指定位置生成并保存密钥。

另请参阅 如何:为远程 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.