Skip to content

Commit

Permalink
docs: add UseInsecureCipher
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed May 24, 2020
1 parent b2bda22 commit 19c6b07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ func main() {
// Optional fingerprint SHA256 verification
// Get Fingerprint: ssh.FingerprintSHA256(key)
//Fingerprint: "SHA256:mVPwvezndPv/ARoIadVY98vAC0g+P/5633yTC4d/wXE"

// include more ciphers with use_insecure_cipher
// common algorithm for key exchange
UseInsecureCipher: true,
}

// Call Run method with command you want to run on remote server.
Expand Down
4 changes: 4 additions & 0 deletions example/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func main() {
// Optional fingerprint SHA256 verification
// Get Fingerprint: ssh.FingerprintSHA256(key)
//Fingerprint: "SHA256:mVPwvezndPv/ARoIadVY98vAC0g+P/5633yTC4d/wXE"

// include more ciphers with use_insecure_cipher
// common algorithm for key exchange
UseInsecureCipher: true,
}

// Call Run method with command you want to run on remote server.
Expand Down

0 comments on commit 19c6b07

Please sign in to comment.