Issue to be resolved
MacOS 13.4 users may be seeing the following error when they attempt to login to NCCS systems (Discover, Dirac, ADAPT).
Infinite reexec detected; aborting
The error you are seeing is a newly found bug that Apple introduced in MacOS 13.4 (this is something specific to how MacOS is handling PKCS11/PIV and interaction with the ProxyCommand/ProxyJump options that are used for access through a bastion node like login.nccs.nasa.gov).
Solution
To work around this issue, please create a file with the following aliases:
$ cat $HOME/.ssh/ssh_alias_workaround
# create aliases to use ssh-apple-pkcs11 directly to work around # "Infinite reexec detected" error alias ssh=/usr/libexec/ssh-apple-pkcs11 alias scp="scp -S /usr/libexec/ssh-apple-pkcs11" alias sftp="sftp -S /usr/libexec/ssh-apple-pkcs11"
alias rsync="rsync -e /usr/libexec/ssh-apple-pkcs11"
You can then “source” this file directly in your shell on your MacOS system or add that source into your shell init (.bashrc/.cshrc/.zshrc):
$ source $HOME/.ssh/ssh_alias_workaround
You can check to see if the aliases are present in the shell after source by just running the “alias” command without any option.
You should then be able to test your scp/sftp/rsync/ssh command again which should now work without having to change your originally working $HOME/.ssh/config.
This workaround may be needed for some time, we don’t currently have an expected date for a fix from Apple (or any sort of indication on how they plan to address the issue).
For more information: If you try the above and continue to have problems, please email support@nccs.nasa.gov

