mirror of
https://github.com/shanghai-edu/multissh.git
synced 2025-12-15 21:07:50 +00:00
Merge pull request #12 from Dravening/master
fix:Adapt to some certain types of devices(switch).
This commit is contained in:
commit
8a6a859950
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,8 @@ func connect(user, password, host, key string, port int, cipherList []string) (*
|
|||
|
||||
if len(cipherList) == 0 {
|
||||
config = ssh.Config{
|
||||
Ciphers: []string{"aes128-ctr", "aes192-ctr", "aes256-ctr", "aes128-gcm@openssh.com", "arcfour256", "arcfour128", "aes128-cbc", "3des-cbc", "aes192-cbc", "aes256-cbc"},
|
||||
Ciphers: []string{"aes128-ctr", "aes192-ctr", "aes256-ctr", "aes128-gcm@openssh.com", "arcfour256", "arcfour128", "aes128-cbc", "3des-cbc", "aes192-cbc", "aes256-cbc"},
|
||||
KeyExchanges: []string{"diffie-hellman-group-exchange-sha1", "diffie-hellman-group1-sha1", "diffie-hellman-group-exchange-sha256"},
|
||||
}
|
||||
} else {
|
||||
config = ssh.Config{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue