SIA - 'f-ssh': not a valid identifier - when running SIA Alias script on MAC or linux

SIA - 'f-ssh': not a valid identifier - when running SIA Alias script on MAC or linux

87
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:00 PM


Symptom


For some MAC/Linux systems, while attempting to run the ssh alias script (text of the script is copied from the SIA portal) for SIA, the user will get prompted for username as usual then get an error like the below in their terminal: 

'f-ssh': not a valid identifier



Environment


N/A Secure Infrastructure Access (formerly DPA) DPA for SSH

SIA - All Supported Versions - Mac and Linux - SSH



Cause


The system is trying to use an incorrect shell for running the script.



Resolution


Add the following line to the top of the script to ensure it's using the bash shell, as the script is intended:

#!/bin/bash

The alias script can be saved as a .sh script for ease as well. You can save the script by doing the following:

  • Create a new file using your preferred text editor such as vi:
    • vi SIAAliasScript.sh
  • Enter "#!/bin/bash" at the top of the file, add a new line then paste the copied content from the SIA portal.
  • Save the file and quit it by entering:
    • :wq!
  • Now you can run the script:
    • ./SIAAliasScript.sh

 

With "#!/bin/bash" added to the top, the alias script will run with bash shell correctly.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001BL1CAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail