refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / ssh-utils / ssh-pubkey.sh
deleted file mode 100644 (file)
index 044e1e11667b243cad6bd9f71581346028cd2e4f..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-set -e
-set -u
-
-mkdir -p "$HOME/.ssh/"
-
-if [ ! -f "$HOME/.ssh/id_rsa" ]; then
-    ssh-keygen -b 2048 -t rsa -f "$HOME/.ssh/id_rsa" -q -N ""
-    echo ""
-fi
-
-if [ ! -f "$HOME/.ssh/id_rsa.pub" ]; then
-    ssh-keygen -y -f "$HOME/.ssh/id_rsa" > "$HOME/.ssh/id_rsa.pub"
-    echo ""
-fi
-
-# TODO use the comment (if any) for the name of the file
-echo ""
-echo "~/Downloads/id_rsa.$(whoami).pub":
-echo ""
-rm -f "$HOME/Downloads/id_rsa.$(whoami).pub":
-cp -r "$HOME/.ssh/id_rsa.pub" "$HOME/Downloads/id_rsa.$(whoami).pub"
-cat "$HOME/Downloads/id_rsa.$(whoami).pub"
-echo ""
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..45c84e51d4e4a143ecf621b66f6fc2719eac4996
--- /dev/null
@@ -0,0 +1 @@
+../ssh-pubkey/ssh-pubkey.sh
\ No newline at end of file