There was an error while loading. Please reload this page.
1 parent e02f371 commit eb78456Copy full SHA for eb78456
ssh/setup_agent.sh
@@ -29,11 +29,17 @@ echo "Adding new identities."
29
# as if it was your local machine!
30
31
# Support for TPM-based keys
32
-LIBTPM2_PKCS11="/usr/lib/x86_64-linux-gnu/libtpm2_pkcs11.so.1"
+# The path changed with Kubuntu 25.04.
33
+LIBTPM2_PKCS11="/usr/lib/x86_64-linux-gnu/pkcs11/libtpm2_pkcs11.so"
34
+LIBTPM2_PKCS11_OLD="/usr/lib/x86_64-linux-gnu/libtpm2_pkcs11.so.1"
35
if [ -f "${LIBTPM2_PKCS11}" ]; then
36
set +e
37
ssh-add -s "${LIBTPM2_PKCS11}"
38
set -e
39
+elif [ -f "${LIBTPM2_PKCS11_OLD}" ]; then
40
+ set +e
41
+ ssh-add -s "${LIBTPM2_PKCS11_OLD}"
42
+ set -e
43
fi
44
45
# The id_rsa is only used for specific purposes
0 commit comments