Skip to content

Instantly share code, notes, and snippets.

View bluszcz's full-sized avatar
🦌
Full focus on

Rafał Zawadzki bluszcz

🦌
Full focus on
View GitHub Profile
@bluszcz
bluszcz / gist:b5be28fcdbf448268b40f12ee6deda31
Created January 11, 2018 11:55 — forked from anonymous/gist:3811126
.ssh/config for ansible
bluszcz@rafal-dagens ~/repo/ansible $ git diff
diff --git a/lib/ansible/runner/connection_plugins/paramiko_ssh.py b/lib/ansible/runner/connection_plugins/paramiko_ssh.py
index b0f8c51..e9b0f2d 100644
--- a/lib/ansible/runner/connection_plugins/paramiko_ssh.py
+++ b/lib/ansible/runner/connection_plugins/paramiko_ssh.py
@@ -29,6 +29,7 @@ with warnings.catch_warnings():
warnings.simplefilter("ignore")
try:
import paramiko
+ from paramiko import SSHClient, SSHConfig

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt