Doc: Describe using OpenSSH connections
...to connect to embedded Linux devices. Change-Id: Icd4196a25cf99928d929c70df17cd0f7e271abf6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 20 KiB |
BIN
doc/images/qtcreator-ssh-options.png
Normal file
After Width: | Height: | Size: 37 KiB |
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2017 The Qt Company Ltd.
|
** Copyright (C) 2019 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the Qt Creator documentation.
|
** This file is part of the Qt Creator documentation.
|
||||||
@@ -24,6 +24,50 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
||||||
|
//! [configuring ssh]
|
||||||
|
\section2 Configuring SSH Connections
|
||||||
|
|
||||||
|
SSH connections are established via an OpenSSH client running in master
|
||||||
|
mode, if possible. Connection sharing is enabled by default to allow
|
||||||
|
sharing multiple sessions over a single SSH connection. This way, a
|
||||||
|
connection is only established once and then re-used by subsequent run
|
||||||
|
and deploy procedures, saving connection setup overhead particularly
|
||||||
|
with embedded devices. Because connection sharing is not supported on
|
||||||
|
Windows, a new SSH connection is created for each deploy or run procedure.
|
||||||
|
|
||||||
|
To create SSH connections, you must install the \l{https://www.openssh.com/}
|
||||||
|
{OpenSSH} suite, which includes the ssh, sftp, and ssh-keygen tools on the
|
||||||
|
development PC.
|
||||||
|
|
||||||
|
To tell \QC where it can find the tools, specify the paths to the
|
||||||
|
directories where the tools are installed in \uicontrol Tools >
|
||||||
|
\uicontrol Options > \uicontrol Devices > \uicontrol SSH:
|
||||||
|
|
||||||
|
\image qtcreator-ssh-options.png
|
||||||
|
|
||||||
|
\list
|
||||||
|
\li Deselect the \uicontrol {Enable connection sharing} check box to
|
||||||
|
create a new SSH connection for each deploy and run procedure. This
|
||||||
|
option is grayed on Windows, where connection sharing is not
|
||||||
|
supported.
|
||||||
|
\li In the \uicontrol {Connection sharing timeout} field, specify the
|
||||||
|
timeout for reusing the SSH connection in minutes.
|
||||||
|
\li In the \uicontrol {Path to ssh executable} field, enter the path
|
||||||
|
to the directory where the OpenSSH executable is installed.
|
||||||
|
\li In the \uicontrol {Path to sftp executable} field, enter the path
|
||||||
|
to the directory where the SFTP executable is installed.
|
||||||
|
\li In the \uicontrol {Path to ssh-askpass executable} field, enter the
|
||||||
|
path to the directory where the ssh-askpass executable is installed.
|
||||||
|
Usually, you can use the default path that points to the
|
||||||
|
implementation of the tool delivered with \QC, qtc-askpass.
|
||||||
|
\li In the \uicontrol {Path to ssh-keygen executable} field, enter the
|
||||||
|
path to the directory where the ssh-keygen executable is installed.
|
||||||
|
\endlist
|
||||||
|
|
||||||
|
//! [configuring ssh]
|
||||||
|
|
||||||
|
|
||||||
//! [generating ssh keys]
|
//! [generating ssh keys]
|
||||||
|
|
||||||
\section2 Generating SSH Keys
|
\section2 Generating SSH Keys
|
||||||
@@ -39,7 +83,7 @@
|
|||||||
\list 1
|
\list 1
|
||||||
|
|
||||||
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Devices
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Devices
|
||||||
> \uicontrol {Create New}.
|
> \uicontrol Devices > \uicontrol {Create New}.
|
||||||
|
|
||||||
\image qtcreator-ssh-key-configuration.png "SSH Key Configuration dialog"
|
\image qtcreator-ssh-key-configuration.png "SSH Key Configuration dialog"
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2017 The Qt Company Ltd.
|
** Copyright (C) 2019 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the Qt Creator documentation.
|
** This file is part of the Qt Creator documentation.
|
||||||
@@ -30,10 +30,10 @@
|
|||||||
|
|
||||||
You can view processes running on devices and kill them. Select
|
You can view processes running on devices and kill them. Select
|
||||||
\uicontrol Tools > \uicontrol Options > \uicontrol Devices >
|
\uicontrol Tools > \uicontrol Options > \uicontrol Devices >
|
||||||
\uicontrol {Remote Processes}.
|
\uicontrol Devices > \uicontrol {Show Running Processes}.
|
||||||
|
|
||||||
You can filter the processes by name in the \uicontrol {List of Processes}
|
You can filter the processes by name or ID in the
|
||||||
dialog.
|
\uicontrol {List of Processes} dialog.
|
||||||
|
|
||||||
To update the process list, select \uicontrol {Update List}.
|
To update the process list, select \uicontrol {Update List}.
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2018 The Qt Company Ltd.
|
** Copyright (C) 2019 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the Qt Creator documentation.
|
** This file is part of the Qt Creator documentation.
|
||||||
@@ -50,13 +50,21 @@
|
|||||||
add devices and select them in the \QC \l{glossary-buildandrun-kit}{kit}.
|
add devices and select them in the \QC \l{glossary-buildandrun-kit}{kit}.
|
||||||
|
|
||||||
You use a wizard to create the connections. You can edit the settings later
|
You use a wizard to create the connections. You can edit the settings later
|
||||||
in \uicontrol Tools > \uicontrol Options > \uicontrol Devices.
|
in \uicontrol Tools > \uicontrol Options > \uicontrol Devices >
|
||||||
|
\uicontrol Devices.
|
||||||
|
|
||||||
\image qtcreator-linux-device-configurations.png "Devices dialog"
|
\image qtcreator-linux-device-configurations.png "Devices dialog"
|
||||||
|
|
||||||
You can protect the connections between \QC and a device by using
|
You can protect the connections between \QC and a device by using an
|
||||||
either a password or an SSH key. If you do not have an SSH key, you can
|
\l{https://www.openssh.com/}{OpenSSH} connection. OpenSSH is a
|
||||||
create it in \QC. For more information, see \l {Generating SSH Keys}.
|
connectivity tool for remote login using the SSH protocol. The OpenSSH
|
||||||
|
suite is not delivered with \QC, so you must download it and install it
|
||||||
|
on the development PC. Then, you must configure the paths to the tools in
|
||||||
|
\QC. For more information, see \l {Configuring SSH Connections}.
|
||||||
|
|
||||||
|
You need either a password or an SSH public and private key pair for
|
||||||
|
authentication. If you do not have an SSH key, you can use the ssh-keygen
|
||||||
|
tool to create it in \QC. For more information, see \l {Generating SSH Keys}.
|
||||||
|
|
||||||
To configure connections between \QC and an embedded Linux device and to
|
To configure connections between \QC and an embedded Linux device and to
|
||||||
specify build and run settings for the device:
|
specify build and run settings for the device:
|
||||||
@@ -78,8 +86,9 @@
|
|||||||
|
|
||||||
\list 1
|
\list 1
|
||||||
|
|
||||||
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Devices
|
\li Select \uicontrol Tools > \uicontrol Options >
|
||||||
> \uicontrol Add > \uicontrol {Generic Linux Device}
|
\uicontrol Devices > \uicontrol Devices > \uicontrol Add >
|
||||||
|
\uicontrol {Generic Linux Device}
|
||||||
> \uicontrol {Start Wizard}.
|
> \uicontrol {Start Wizard}.
|
||||||
|
|
||||||
\image qtcreator-screenshot-devconf-linux.png "Connection Data wizard"
|
\image qtcreator-screenshot-devconf-linux.png "Connection Data wizard"
|
||||||
@@ -96,11 +105,12 @@
|
|||||||
application as.
|
application as.
|
||||||
This value will be available in the variable \c %{Device:UserName}.
|
This value will be available in the variable \c %{Device:UserName}.
|
||||||
|
|
||||||
\li In the \uicontrol {The authentication type} field, select whether
|
\li In the \uicontrol {The authentication type} field, select
|
||||||
to use \uicontrol Password or \uicontrol Key authentication, and enter
|
\uicontrol Default to use the currently displayed private
|
||||||
the user's password or the file that contains the user's
|
key file for authentication. Select \uicontrol {Specific Key}
|
||||||
private key.
|
to use some other key, and enter the path to the file that
|
||||||
The latter will be available in the variable \c %{Device:PrivateKeyFile}.
|
contains the private key in the field below. This value will
|
||||||
|
be available in the variable \c %{Device:PrivateKeyFile}.
|
||||||
|
|
||||||
\li Click \uicontrol {Next} to create the connection.
|
\li Click \uicontrol {Next} to create the connection.
|
||||||
|
|
||||||
@@ -137,6 +147,7 @@
|
|||||||
|
|
||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
|
\include linux-mobile/linuxdev-keys.qdocinc configuring ssh
|
||||||
\include linux-mobile/linuxdev-keys.qdocinc generating ssh keys
|
\include linux-mobile/linuxdev-keys.qdocinc generating ssh keys
|
||||||
\include linux-mobile/linuxdev-processes.qdocinc managing device processes
|
\include linux-mobile/linuxdev-processes.qdocinc managing device processes
|
||||||
*/
|
*/
|
||||||
|