Skip to content

Commit 70b93ab

Browse files
committed
chore: add missing UseInsecureCipher
1 parent 19c6b07 commit 70b93ab

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

easyssh.go

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,16 @@ func (ssh_conf *MakeConfig) Connect() (*ssh.Session, *ssh.Client, error) {
168168
var err error
169169

170170
targetConfig, closer := getSSHConfig(DefaultConfig{
171-
User: ssh_conf.User,
172-
Key: ssh_conf.Key,
173-
KeyPath: ssh_conf.KeyPath,
174-
Passphrase: ssh_conf.Passphrase,
175-
Password: ssh_conf.Password,
176-
Timeout: ssh_conf.Timeout,
177-
Ciphers: ssh_conf.Ciphers,
178-
KeyExchanges: ssh_conf.KeyExchanges,
179-
Fingerprint: ssh_conf.Fingerprint,
171+
User: ssh_conf.User,
172+
Key: ssh_conf.Key,
173+
KeyPath: ssh_conf.KeyPath,
174+
Passphrase: ssh_conf.Passphrase,
175+
Password: ssh_conf.Password,
176+
Timeout: ssh_conf.Timeout,
177+
Ciphers: ssh_conf.Ciphers,
178+
KeyExchanges: ssh_conf.KeyExchanges,
179+
Fingerprint: ssh_conf.Fingerprint,
180+
UseInsecureCipher: ssh_conf.UseInsecureCipher,
180181
})
181182
if closer != nil {
182183
defer closer.Close()
@@ -185,15 +186,16 @@ func (ssh_conf *MakeConfig) Connect() (*ssh.Session, *ssh.Client, error) {
185186
// Enable proxy command
186187
if ssh_conf.Proxy.Server != "" {
187188
proxyConfig, closer := getSSHConfig(DefaultConfig{
188-
User: ssh_conf.Proxy.User,
189-
Key: ssh_conf.Proxy.Key,
190-
KeyPath: ssh_conf.Proxy.KeyPath,
191-
Passphrase: ssh_conf.Proxy.Passphrase,
192-
Password: ssh_conf.Proxy.Password,
193-
Timeout: ssh_conf.Proxy.Timeout,
194-
Ciphers: ssh_conf.Proxy.Ciphers,
195-
KeyExchanges: ssh_conf.Proxy.KeyExchanges,
196-
Fingerprint: ssh_conf.Proxy.Fingerprint,
189+
User: ssh_conf.Proxy.User,
190+
Key: ssh_conf.Proxy.Key,
191+
KeyPath: ssh_conf.Proxy.KeyPath,
192+
Passphrase: ssh_conf.Proxy.Passphrase,
193+
Password: ssh_conf.Proxy.Password,
194+
Timeout: ssh_conf.Proxy.Timeout,
195+
Ciphers: ssh_conf.Proxy.Ciphers,
196+
KeyExchanges: ssh_conf.Proxy.KeyExchanges,
197+
Fingerprint: ssh_conf.Proxy.Fingerprint,
198+
UseInsecureCipher: ssh_conf.Proxy.UseInsecureCipher,
197199
})
198200
if closer != nil {
199201
defer closer.Close()

0 commit comments

Comments
 (0)