Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nxssh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rx-etersoft
nxssh
Commits
049fe8e4
Commit
049fe8e4
authored
Nov 09, 2016
by
Stas Korobeynikov
Committed by
Pavel Vainerman
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change E param openssh to H
parent
74eff61d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
ssh.c
ssh.c
+8
-5
No files found.
ssh.c
View file @
049fe8e4
...
...
@@ -323,11 +323,12 @@ int deleteOffendingKey(char * file_name , unsigned int raw)
static
void
usage
(
void
)
{
//NX change -E for -H param
fprintf
(
stderr
,
"usage: nxssh [-nx|-nxservermode|-nxadminmode|-nxauthonly|-nxstdinpass]
\n
"
" [-delkey known_hosts row] [-BE] [-1246AaCfgkMNnqsTtVvXxY]
\n
"
" [-b bind_address] [-c cipher_spec]
\n
"
" [-D [bind_address:]port] [-
E
log_file] [-e escape_char]
\n
"
" [-D [bind_address:]port] [-
H
log_file] [-e escape_char]
\n
"
" [-F configfile] [-I pkcs11] [-i identity_file]
\n
"
" [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
\n
"
" [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
\n
"
...
...
@@ -798,7 +799,7 @@ main(int ac, char **av)
again:
while
((
opt
=
getopt
(
ac
,
av
,
"1246ab:c:e:fgi:kl:m:no:p:qstvx"
"ACD:
E:F:GI:J:KL:MNO:P
Q:R:S:TVw:W:XYBEy"
))
!=
-
1
)
{
"ACD:
H:F:GI:J:KL:MNO:P:
Q:R:S:TVw:W:XYBEy"
))
!=
-
1
)
{
switch
(
opt
)
{
case
'1'
:
options
.
protocol
=
SSH_PROTO_1
;
...
...
@@ -828,7 +829,8 @@ main(int ac, char **av)
case
'y'
:
use_syslog
=
1
;
break
;
case
'E'
:
//NX change -E for -H param
case
'H'
:
logfile
=
optarg
;
break
;
case
'G'
:
...
...
@@ -1302,12 +1304,13 @@ main(int ac, char **av)
fatal
(
"Cannot fork into background without a command "
"to execute."
);
//NX change -E for -H param
/*
* Initialize "log" output. Since we are the client all output
* goes to stderr unless otherwise specified by -y or -
E
.
* goes to stderr unless otherwise specified by -y or -
H
.
*/
if
(
use_syslog
&&
logfile
!=
NULL
)
fatal
(
"Can't specify both -y and -
E
"
);
fatal
(
"Can't specify both -y and -
H
"
);
if
(
logfile
!=
NULL
)
log_redirect_stderr_to
(
logfile
);
log_init
(
argv0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment