keydir
This commit is contained in:
parent
0b55a80d97
commit
a21a21be9a
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
||||||
KEY_ALGORITHM='ed25519'
|
KEY_ALGORITHM='ed25519'
|
||||||
KEY_PATH=".ssh/id_${KEY_ALGORITHM}"
|
KEY_DIRECTORY='.ssh'
|
||||||
|
KEY_PATH="${KEY_DIRECTORY}/id_${KEY_ALGORITHM}"
|
||||||
KEY_PUBLIC='AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5'
|
KEY_PUBLIC='AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5'
|
||||||
PACKAGES=(
|
PACKAGES=(
|
||||||
'python3'
|
'python3'
|
||||||
|
@ -9,8 +10,9 @@ PACKAGES=(
|
||||||
SERVER="$(basename ${GITHUB_SERVER_URL})"
|
SERVER="$(basename ${GITHUB_SERVER_URL})"
|
||||||
|
|
||||||
# ssh
|
# ssh
|
||||||
cd
|
cd \
|
||||||
mkdir '.ssh' \
|
|| exit
|
||||||
|
mkdir "${KEY_DIRECTORY}" \
|
||||||
|| exit
|
|| exit
|
||||||
echo "${CD}" > "${KEY_PATH}" \
|
echo "${CD}" > "${KEY_PATH}" \
|
||||||
|| exit
|
|| exit
|
||||||
|
@ -18,7 +20,7 @@ unset CD
|
||||||
chmod '400' "${KEY_PATH}" \
|
chmod '400' "${KEY_PATH}" \
|
||||||
|| exit
|
|| exit
|
||||||
echo "${SERVER} ssh-${KEY_ALGORITHM} ${KEY_PUBLIC}" \
|
echo "${SERVER} ssh-${KEY_ALGORITHM} ${KEY_PUBLIC}" \
|
||||||
> '.ssh/known_hosts' \
|
> "${KEY_DIRECTORY}/known_hosts" \
|
||||||
|| exit
|
|| exit
|
||||||
|
|
||||||
# packages
|
# packages
|
||||||
|
|
Loading…
Reference in a new issue