Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
e6c8f4dd
Unverified
Commit
e6c8f4dd
authored
Nov 04, 2019
by
Eric_Lee
Committed by
GitHub
Nov 04, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #136 from jumpserver/dev_bugfix
[Update] Add more detail error info message
parents
7f846576
1832ba35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
connmanager.go
pkg/srvconn/connmanager.go
+4
-2
No files found.
pkg/srvconn/connmanager.go
View file @
e6c8f4dd
...
...
@@ -196,12 +196,14 @@ func (sc *SSHClientConfig) Dial() (client *gossh.Client, err error) {
}
proxySock
,
err
:=
proxyClient
.
Dial
(
"tcp"
,
net
.
JoinHostPort
(
sc
.
Host
,
sc
.
Port
))
if
err
!=
nil
{
err
=
errors
.
New
(
"connect proxy host error 2: "
+
err
.
Error
(
))
logger
.
Error
(
"Connect proxy host error 2: "
,
err
.
Error
())
err
=
errors
.
New
(
fmt
.
Sprintf
(
"tcp connect host %s:%s error 2: %s"
,
sc
.
Host
,
sc
.
Port
,
err
.
Error
()
))
logger
.
Error
f
(
"Tcp connect host %s:%s error 2: %s"
,
sc
.
Host
,
sc
.
Port
,
err
.
Error
())
return
client
,
err
}
proxyConn
,
chans
,
reqs
,
err
:=
gossh
.
NewClientConn
(
proxySock
,
net
.
JoinHostPort
(
sc
.
Host
,
sc
.
Port
),
cfg
)
if
err
!=
nil
{
err
=
errors
.
New
(
fmt
.
Sprintf
(
"ssh connect host %s:%s error 3: %s"
,
sc
.
Host
,
sc
.
Port
,
err
.
Error
()))
logger
.
Errorf
(
"SSH Connect host %s:%s error 3: %s"
,
sc
.
Host
,
sc
.
Port
,
err
.
Error
())
return
client
,
err
}
sc
.
proxyConn
=
proxyConn
...
...
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