Skip to content

Commit d0c5d50

Browse files
RuoqingHeroypat
authored andcommitted
riscv64: Replace id_rsa.pub with *.pub
Encryption algorithm is changed after bumping to ubuntu:24:04, ubuntu:22.04 is using RSA while ubuntu:24.04 is using Ed25519. Replace `id_rsa.pub` with `*.pub` to avoid possible encryption algorithm change. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
1 parent e0bf73a commit d0c5d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv64/build_finalize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo 'tmpfs /tmp tmpfs rw,nosuid,nodev,size=524288k,nr_inodes=204800 0 0' >> $RO
1313

1414
# Setup container ssh config
1515
yes "" | ssh-keygen -P ""
16-
cat /root/.ssh/id_rsa.pub > $ROOTFS_DIR/root/.ssh/authorized_keys
16+
cat /root/.ssh/*.pub > $ROOTFS_DIR/root/.ssh/authorized_keys
1717
cat > /root/.ssh/config << EOF
1818
Host riscv-qemu
1919
HostName localhost

0 commit comments

Comments
 (0)