File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ set -eu
1010# https://security.stackexchange.com/questions/143442/what-are-ssh-keygen-best-practices
1111# https://stribika.github.io/2015/01/04/secure-secure-shell.html
1212# https://en.wikipedia.org/wiki/Key_size
13+ # CSC servers require a minimum of 4096 bits for RSA keys.
14+ # https://docs.csc.fi/computing/connecting/ssh-keys/#adding-public-key-in-mycsc
1315
1416# When running, don't accidentally overwrite your existing keys!
1517ssh-keygen -t rsa -b 4096
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ assh() {
1010 if [ -f " ${CSC_CERT_TOOL} " ]; then
1111 local SSH_USER=" $( awk ' $1 == "user" { print $2 }' <<< " $SSH_SETTINGS" ) "
1212 local STRIPPED_HOSTNAME=" ${HOST% " -kubuntu" } "
13- local SSH_KEY_NAME=" id_ed25519_ ${STRIPPED_HOSTNAME} "
13+ local SSH_KEY_NAME=" id_rsa_tpm_ ${STRIPPED_HOSTNAME} "
1414 local SSH_KEY_PATH=" ${HOME} /.ssh/${SSH_KEY_NAME} .pub"
1515 if [ -f " ${SSH_KEY_PATH} " ]; then
1616 " ${CSC_CERT_TOOL} " -u " ${SSH_USER} " " ${SSH_KEY_PATH} "
You can’t perform that action at this time.
0 commit comments