aboutsummaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-01 20:41:48 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-01 20:41:48 -0600
commitffa3d553f693494c218a0244c946ba83dfbf7cd1 (patch)
tree092a824dad118c37960ab67da98cdbc445a35d2b /priv
downloadtronglessh-main.tar.gz
tronglessh-main.zip
Diffstat (limited to 'priv')
-rw-r--r--priv/.gitignore1
-rw-r--r--priv/make_keys.sh12
2 files changed, 13 insertions, 0 deletions
diff --git a/priv/.gitignore b/priv/.gitignore
new file mode 100644
index 0000000..2744c99
--- /dev/null
+++ b/priv/.gitignore
@@ -0,0 +1 @@
+keys/ \ No newline at end of file
diff --git a/priv/make_keys.sh b/priv/make_keys.sh
new file mode 100644
index 0000000..8d8a872
--- /dev/null
+++ b/priv/make_keys.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ ! -d "keys" ]
+then
+ mkdir keys
+ chmod 700 keys
+ cd keys
+
+ ssh-keygen -N "" -b 256 -t ecdsa -f ssh_host_ecdsa_key
+ ssh-keygen -N "" -b 1024 -t dsa -f ssh_host_dsa_key
+ ssh-keygen -N "" -b 2048 -t rsa -f ssh_host_rsa_key
+fi \ No newline at end of file