mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-25 06:45:39 +02:00
upstream: Document behaviour of arguments following non-interactive
commands. Prompted by github PR#139 from EvanTheB, feedback & ok djm@ jmc@ OpenBSD-Commit-ID: fc758d1fe0471dfab4304fcad6cd4ecc3d79162a
This commit is contained in:
parent
1d47e28e40
commit
66a658b5d9
13
ssh.1
13
ssh.1
@ -33,8 +33,8 @@
|
|||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" $OpenBSD: ssh.1,v 1.426 2021/09/03 07:27:03 dtucker Exp $
|
.\" $OpenBSD: ssh.1,v 1.427 2021/09/10 10:26:02 dtucker Exp $
|
||||||
.Dd $Mdocdate: September 3 2021 $
|
.Dd $Mdocdate: September 10 2021 $
|
||||||
.Dt SSH 1
|
.Dt SSH 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -65,7 +65,7 @@
|
|||||||
.Op Fl W Ar host : Ns Ar port
|
.Op Fl W Ar host : Ns Ar port
|
||||||
.Op Fl w Ar local_tun Ns Op : Ns Ar remote_tun
|
.Op Fl w Ar local_tun Ns Op : Ns Ar remote_tun
|
||||||
.Ar destination
|
.Ar destination
|
||||||
.Op Ar command
|
.Op Ar command Op Ar argument ...
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm
|
.Nm
|
||||||
(SSH client) is a program for logging into a remote machine and for
|
(SSH client) is a program for logging into a remote machine and for
|
||||||
@ -94,7 +94,12 @@ their identity to the remote machine using one of several methods
|
|||||||
If a
|
If a
|
||||||
.Ar command
|
.Ar command
|
||||||
is specified,
|
is specified,
|
||||||
it is executed on the remote host instead of a login shell.
|
it will be executed on the remote host instead of a login shell.
|
||||||
|
A complete command line may be specified as
|
||||||
|
.Ar command ,
|
||||||
|
or it may have additional arguments.
|
||||||
|
If supplied, the arguments will be appended to the command, separated by
|
||||||
|
spaces, before it is sent to the server to be executed.
|
||||||
.Pp
|
.Pp
|
||||||
The options are as follows:
|
The options are as follows:
|
||||||
.Pp
|
.Pp
|
||||||
|
4
ssh.c
4
ssh.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ssh.c,v 1.566 2021/08/08 08:49:09 dtucker Exp $ */
|
/* $OpenBSD: ssh.c,v 1.567 2021/09/10 10:26:02 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -185,7 +185,7 @@ usage(void)
|
|||||||
" [-i identity_file] [-J [user@]host[:port]] [-L address]\n"
|
" [-i identity_file] [-J [user@]host[:port]] [-L address]\n"
|
||||||
" [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]\n"
|
" [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]\n"
|
||||||
" [-Q query_option] [-R address] [-S ctl_path] [-W host:port]\n"
|
" [-Q query_option] [-R address] [-S ctl_path] [-W host:port]\n"
|
||||||
" [-w local_tun[:remote_tun]] destination [command]\n"
|
" [-w local_tun[:remote_tun]] destination [command [argument ...]]\n"
|
||||||
);
|
);
|
||||||
exit(255);
|
exit(255);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user