add commented new feature

This commit is contained in:
Jakobus Schürz 2023-03-07 18:13:22 +01:00
parent aa9982fdbe
commit 0d52aeba3b

View file

@ -22,6 +22,32 @@ promptcommandmunge () {
} }
function _pkcs11module_hook() { function _pkcs11module_hook() {
# if [ -S ~/.ssh/ssh_from_remote_auth_sock ]
# then
# if ss -elx|grep -q $(readlink -f ~/.ssh/ssh_from_remote_auth_sok) # test if socket is active
# then
# # Use PKCS11_MODULE from remote connection, even when using local machine
# # This is for: When i'm logged in from remote and working on local workstation, so i can use the token locally too
# #echo "read p11m" >&2
# if [ -e ~/.ssh/p11m ]
# then
# . ~/.ssh/p11m
# else
# rm ~/.ssh/p11m
# unset P11M
# unset PKCS11_MODULE
# fi
# fi
# else
# #echo "NOT read p11m, delete it!" >&2
# [ -e ~/.ssh/p11m ] && { rm ~/.ssh/p11m; \
# unset P11M; \
# unset PKCS11_MODULE; \
# }
#
# fi
if [ -z "${PKCS11_MODULE:+x}" ] if [ -z "${PKCS11_MODULE:+x}" ]
then then
# setze PKCS11_MODULE # setze PKCS11_MODULE