From dc0bdf67552c7ff8e9784aa4d4f71f13b23cfcaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 29 Apr 2024 07:46:45 +0300 Subject: [PATCH] Source Update --- src/commands/ssh/sign.sh | 4 +++- wx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/ssh/sign.sh b/src/commands/ssh/sign.sh index bbe6e5c..b927c56 100644 --- a/src/commands/ssh/sign.sh +++ b/src/commands/ssh/sign.sh @@ -20,6 +20,9 @@ wx-ssh-sign(){ } wx-ssh-sign-create(){ + mkdir -p $HOME/.ssh/keys + chmod 600 $HOME/.ssh/keys + NAME=$1 ROLE=$2 PRINCIPALS=$2 @@ -27,7 +30,6 @@ wx-ssh-sign-create(){ if [[ ! -f "$HOME/.ssh/keys/$NAME-ed25519" ]] then - mkdir -p $HOME/.ssh/keys ssh-keygen -t ed25519 -f $HOME/.ssh/keys/$NAME-ed25519 -q -N "" &> /dev/null fi diff --git a/wx b/wx index b73990b..91941f9 100755 --- a/wx +++ b/wx @@ -384,6 +384,9 @@ wx-ssh-sign(){ } wx-ssh-sign-create(){ + mkdir -p $HOME/.ssh/keys + chmod 600 $HOME/.ssh/keys + NAME=$1 ROLE=$2 PRINCIPALS=$2 @@ -391,7 +394,6 @@ wx-ssh-sign-create(){ if [[ ! -f "$HOME/.ssh/keys/$NAME-ed25519" ]] then - mkdir -p $HOME/.ssh/keys ssh-keygen -t ed25519 -f $HOME/.ssh/keys/$NAME-ed25519 -q -N "" &> /dev/null fi