12 lines
361 B
Go
12 lines
361 B
Go
package ssh
|
|
|
|
func MakeXSSHConfig() *ClientConfig {
|
|
ret := new(ClientConfig)
|
|
ret.DontAuthenticate = true // IOT scan ethically, never attempt to authenticate
|
|
ret.ClientVersion = pkgConfig.ClientID
|
|
ret.HostKeyAlgorithms = pkgConfig.HostKeyAlgorithms.Get()
|
|
ret.KeyExchanges = pkgConfig.KexAlgorithms.Get()
|
|
ret.Ciphers = pkgConfig.Ciphers.Get()
|
|
return ret
|
|
}
|