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
74d4c5c2
Commit
74d4c5c2
authored
Jun 20, 2019
by
Eric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] support more ssh ciphers
parent
71d149c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
pagination.go
pkg/handler/pagination.go
+1
-1
connmanager.go
pkg/srvconn/connmanager.go
+11
-0
No files found.
pkg/handler/pagination.go
View file @
74d4c5c2
...
@@ -157,7 +157,7 @@ func (p *AssetPagination) displayPageAssets() {
...
@@ -157,7 +157,7 @@ func (p *AssetPagination) displayPageAssets() {
Fields
:
fields
,
Fields
:
fields
,
Labels
:
Labels
,
Labels
:
Labels
,
FieldsSize
:
map
[
string
][
3
]
int
{
FieldsSize
:
map
[
string
][
3
]
int
{
"ID"
:
{
0
,
0
,
0
},
"ID"
:
{
0
,
0
,
4
},
"hostname"
:
{
0
,
8
,
0
},
"hostname"
:
{
0
,
8
,
0
},
"IP"
:
{
15
,
0
,
0
},
"IP"
:
{
15
,
0
,
0
},
"systemUsers"
:
{
0
,
12
,
0
},
"systemUsers"
:
{
0
,
12
,
0
},
...
...
pkg/srvconn/connmanager.go
View file @
74d4c5c2
...
@@ -21,6 +21,16 @@ var (
...
@@ -21,6 +21,16 @@ var (
clientLock
=
new
(
sync
.
RWMutex
)
clientLock
=
new
(
sync
.
RWMutex
)
)
)
var
(
supportedCiphers
=
[]
string
{
"aes128-ctr"
,
"aes192-ctr"
,
"aes256-ctr"
,
"aes128-gcm@openssh.com"
,
"chacha20-poly1305@openssh.com"
,
"arcfour256"
,
"arcfour128"
,
"arcfour"
,
"aes128-cbc"
,
"3des-cbc"
}
)
type
SSHClientConfig
struct
{
type
SSHClientConfig
struct
{
Host
string
`json:"host"`
Host
string
`json:"host"`
Port
string
`json:"port"`
Port
string
`json:"port"`
...
@@ -59,6 +69,7 @@ func (sc *SSHClientConfig) Config() (config *gossh.ClientConfig, err error) {
...
@@ -59,6 +69,7 @@ func (sc *SSHClientConfig) Config() (config *gossh.ClientConfig, err error) {
User
:
sc
.
User
,
User
:
sc
.
User
,
Auth
:
authMethods
,
Auth
:
authMethods
,
HostKeyCallback
:
gossh
.
InsecureIgnoreHostKey
(),
HostKeyCallback
:
gossh
.
InsecureIgnoreHostKey
(),
Config
:
gossh
.
Config
{
Ciphers
:
supportedCiphers
},
Timeout
:
sc
.
Timeout
,
Timeout
:
sc
.
Timeout
,
}
}
return
config
,
nil
return
config
,
nil
...
...
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