mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
doc: More work on the tutorial.
This commit is contained in:
committed by
Andreas Schneider
parent
49f57a8d0d
commit
398bc769ce
@ -1,9 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
@page commands Chapter 4: Passing remote commands
|
@page command Chapter 4: Passing a remote command
|
||||||
@section remote_commands Passing remote commands
|
@section remote_command Passing a remote command
|
||||||
|
|
||||||
Previous chapter has shown how to open a full shell session, with an attached
|
Previous chapter has shown how to open a full shell session, with an attached
|
||||||
terminal or not. If you only need to execute commands on the remote end,
|
terminal or not. If you only need to execute a command on the remote end,
|
||||||
you don't need all that complexity.
|
you don't need all that complexity.
|
||||||
|
|
||||||
The method described here is suited for executing only one remote command.
|
The method described here is suited for executing only one remote command.
|
||||||
@ -13,9 +13,9 @@ a non-interactive remote shell, as explained in previous chapter.
|
|||||||
@see shell
|
@see shell
|
||||||
|
|
||||||
|
|
||||||
@subsection exec_remote Executing remote commands
|
@subsection exec_remote Executing a remote command
|
||||||
|
|
||||||
The first steps for executing remote commands are identical to those
|
The first steps for executing a remote command are identical to those
|
||||||
for opening remote shells. You first need a SSH channel, and then
|
for opening remote shells. You first need a SSH channel, and then
|
||||||
a SSH session that uses this channel:
|
a SSH session that uses this channel:
|
||||||
|
|
@ -356,7 +356,7 @@ int main()
|
|||||||
|
|
||||||
At this point, the authenticity of both server and client is established.
|
At this point, the authenticity of both server and client is established.
|
||||||
Time has come to take advantage of the many possibilities offered by the SSH
|
Time has come to take advantage of the many possibilities offered by the SSH
|
||||||
protocol: execute remote commands, open remote shells, transfer files,
|
protocol: execute a remote command, open remote shells, transfer files,
|
||||||
forward ports, etc.
|
forward ports, etc.
|
||||||
|
|
||||||
The example below shows how to execute a remote command:
|
The example below shows how to execute a remote command:
|
||||||
@ -416,7 +416,7 @@ int show_remote_processes(ssh_session session)
|
|||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
@see @ref opening_shell
|
@see @ref opening_shell
|
||||||
@see @ref remote_commands
|
@see @ref remote_command
|
||||||
@see @ref sftp_subsystem
|
@see @ref sftp_subsystem
|
||||||
@see @ref scp_subsystem
|
@see @ref scp_subsystem
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ Table of contents:
|
|||||||
|
|
||||||
@subpage shell
|
@subpage shell
|
||||||
|
|
||||||
@subpage commands
|
@subpage command
|
||||||
|
|
||||||
@subpage sftp
|
@subpage sftp
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user