@@ -168,15 +168,16 @@ func (ssh_conf *MakeConfig) Connect() (*ssh.Session, *ssh.Client, error) {
168
168
var err error
169
169
170
170
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 ,
180
181
})
181
182
if closer != nil {
182
183
defer closer .Close ()
@@ -185,15 +186,16 @@ func (ssh_conf *MakeConfig) Connect() (*ssh.Session, *ssh.Client, error) {
185
186
// Enable proxy command
186
187
if ssh_conf .Proxy .Server != "" {
187
188
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 ,
197
199
})
198
200
if closer != nil {
199
201
defer closer .Close ()
0 commit comments