You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/advanced.rst
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Use of an available SSH agent can also be disabled.
56
56
57
57
For large number of hosts, it is recommended that private keys are provided programmatically and use of SSH agent is disabled via ``allow_agent=False`` as above.
58
58
59
-
If the number of hosts is large enough, available connections to the system SSH may be exhausted which will stop the client from working on a subset of hosts.
59
+
If the number of hosts is large enough, available connections to the system SSH agent may be exhausted which will stop the client from working on a subset of hosts.
60
60
61
61
This is a limitation of the underlying SSH client used by ``ParallelSSH``.
62
62
@@ -100,7 +100,7 @@ Proxy host can be configured as follows in the simplest case:
Where ``proxy.key`` is a filename containing private key to use for proxy host authentication.
118
118
119
-
In the above example, connection to the target host is made via ``my_proxy_user@bastion`` -> ``target_host_user@<host>``.
119
+
In the above example, connections to the target hosts are made via ``my_proxy_user@bastion:2222`` -> ``target_host_user@<host>``.
120
120
121
121
.. note::
122
122
123
123
Proxy host connections are asynchronous and use the SSH protocol's native TCP tunneling - aka local port forward. No external commands or processes are used for the proxy connection, unlike the `ProxyCommand` directive in OpenSSH and other utilities.
124
124
125
-
While the connections initiated by ``ParallelSSH`` are asynchronous, the connections from proxy host -> target hosts may not be, depending on SSH server implementation. If only one proxy host is used to connect to a large number of target hosts and proxy SSH server connections are *not* asynchronous, this may adversely impact performance on the proxy host.
125
+
While connections initiated by ``ParallelSSH`` are asynchronous, connections from proxy host -> target hosts may not be, depending on SSH server implementation. If only one proxy host is used to connect to a large number of target hosts and proxy SSH server connections are *not* asynchronous, this may adversely impact performance on the proxy host.
126
126
127
127
Per-Host Configuration
128
128
***********************
@@ -157,7 +157,7 @@ In the above example, ``host1`` will use user name ``user1`` and private key fro
157
157
Per-Host Command substitution
158
158
******************************
159
159
160
-
For cases where different commands should be run each host, or the same command with different arguments, functionality exists to provide per-host command arguments for substitution.
160
+
For cases where different commands should be run on each host, or the same command with different arguments, functionality exists to provide per-host command arguments for substitution.
161
161
162
162
The ``host_args`` keyword parameter to :py:func:`run_command <pssh.pssh_client.ParallelSSHClient.run_command>` can be used to provide arguments to use to format the command string.
163
163
@@ -201,7 +201,7 @@ See :py:func:`run_command API documentation <pssh.pssh_client.ParallelSSHClient.
201
201
202
202
.. note::
203
203
204
-
With a PTY, stdout and stderr output is combined into stdout.
204
+
With a PTY, the default, stdout and stderr output is combined into stdout.
205
205
206
206
Without a PTY, separate output is given for stdout and stderr, although some programs and server configurations require a PTY.
207
207
@@ -253,7 +253,7 @@ Disabling use of pseudo terminal emulation
253
253
254
254
By default, ``ParallelSSH`` uses the user's configured shell to run commands with. As a shell is used by default, a pseudo terminal (`PTY`) is also requested by default.
255
255
256
-
For cases where use of a `PTY`isnot wanted, such as having separate stdout and stderr outputs, orthe remote command is a daemon that needs to fork and detach itself or when use of a shell is explicitly disabled, use of PTY can also be disabled.
256
+
For cases where use of a `PTY`isnot wanted, such as having separate stdout and stderr outputs, the remote command is a daemon that needs to fork and detach itself or when use of a shell is explicitly disabled, use of PTY can also be disabled.
257
257
258
258
The following example prints to stderr withPTY disabled.
Copy file name to clipboardExpand all lines: doc/quickstart.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ The helper function :py:func:`load_private_key <pssh.utils.load_private_key>` is
143
143
Host Logger
144
144
------------
145
145
146
-
There is a built in host logger that can be enabled to automatically log output from remote hosts. This requires the ``consume_output`` flag to be enabled on :py:func:`join <pssh.pssh_client.join`.
146
+
There is a built in host logger that can be enabled to automatically log output from remote hosts. This requires the ``consume_output`` flag to be enabled on :py:func:`join <pssh.pssh_client.ParallelSSHClient.join>`.
147
147
148
148
The helper function ``pssh.utils.enable_host_logger`` will enable host logging to standard output, for example:
0 commit comments