Skip to content

Commit 7e5c54f

Browse files
committed
Fix more Roihu SSH configs
1 parent bdf4808 commit 7e5c54f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ssh/ssh-keygen.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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!
1517
ssh-keygen -t rsa -b 4096

zsh/custom/ssh.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}"

0 commit comments

Comments
 (0)