X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=ssh-utils%2Fssh-pubkey.sh;h=45c84e51d4e4a143ecf621b66f6fc2719eac4996;hb=d68d0376b9cead7e1bf6446e71f00c8e3c965a45;hp=9f0722911b6ee68640012814bf885f2b60aa580b;hpb=2d4cc2a75db4fcaec63afa48a3fec3be3a0732b8;p=webi-installers%2F.git diff --git a/ssh-utils/ssh-pubkey.sh b/ssh-utils/ssh-pubkey.sh deleted file mode 100644 index 9f07229..0000000 --- a/ssh-utils/ssh-pubkey.sh +++ /dev/null @@ -1,27 +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 "" -} diff --git a/ssh-utils/ssh-pubkey.sh b/ssh-utils/ssh-pubkey.sh new file mode 120000 index 0000000..45c84e5 --- /dev/null +++ b/ssh-utils/ssh-pubkey.sh @@ -0,0 +1 @@ +../ssh-pubkey/ssh-pubkey.sh \ No newline at end of file