summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ssl_ssh6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ssl_ssh b/shell/ssl_ssh
new file mode 100644
index 0000000..90dc73f
--- /dev/null
+++ b/shell/ssl_ssh
@@ -0,0 +1,6 @@
+# tunnel to view hadoop admin pages locally (e.g., links http://localhost:50030)
+ssh -f user@hadoop.login.host -L 50070:namenode.host:50070 -L 50030:jobtracker.host:50030 -N
+
+# get cert
+openssl s_client -connect some.host:993 < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin | sed "s|:||g"
+