When you run sudo ./ssh_setup.sh, it throws an error saying _sudo: unable to execute ./sslsetup.sh: No such file or directory, see the screenshot below;
I found out that this is because _sslsetup.sh is using the wrong path to env. On Linux systems, the env binary is normally in /usr/bin and not /bin. Changing line 1 from #!/bin/env bash to #!/usr/bin/env bash resolves the issue.
When you run
sudo ./ssh_setup.sh
, it throws an error saying _sudo: unable to execute ./sslsetup.sh: No such file or directory, see the screenshot below; I found out that this is because _sslsetup.sh is using the wrong path toenv
. On Linux systems, the env binary is normally in /usr/bin and not /bin. Changing line 1 from#!/bin/env bash
to#!/usr/bin/env bash
resolves the issue.