Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty password on mac os #14

Open
nsmathew opened this issue Feb 11, 2023 · 0 comments
Open

Empty password on mac os #14

nsmathew opened this issue Feb 11, 2023 · 0 comments

Comments

@nsmathew
Copy link

Cluster: ShARC
Client OS: Mac OS Ventura 13.1 (Intel)

The script to start the remote vscode server, start_vscode_sharc.sh does not generate the password on Mac OS. I used a slightly different command as below to get it working.

Original command(line 325)
VSCPASS=$(strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo)

Updated Command
VSCPASS=$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 30 | head -n 1)

Command referenced from https://www.markusdosch.com/2022/05/generating-a-random-string-on-linux-macos/

strings /dev/urandom does not print any output for me while cat /dev/urandom does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant