Skip to content

Commit

Permalink
add more ciphers
Browse files Browse the repository at this point in the history
  • Loading branch information
yinheli committed Jul 21, 2018
1 parent d65495c commit 679f63b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/sshw/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ func login(node *sshw.Node) {
Timeout: time.Second * 10,
}

config.SetDefaults()
config.Ciphers = append(config.Ciphers, "aes128-cbc", "3des-cbc", "blowfish-cbc", "cast128-cbc", "aes192-cbc", "aes256-cbc")

client, err := ssh.Dial("tcp", fmt.Sprintf("%s:%d", host, port), config)
if err != nil {
log.Error(err)
Expand Down

0 comments on commit 679f63b

Please sign in to comment.