bash: $HOME/.ssh/passphrase: ambiguous redirect
Opened this issue · 1 comments
mjscosta commented
modify provision-user.sh, line
tr -cd '[:alnum:]|!"#$%&/\()?;,:..<>+-' < /dev/urandom | fold -w12 | head -n1 > $HOME/.ssh/passphrase && chmod 400 $HOME/.ssh/passphrase
to
tr -cd '[:alnum:]|!"#$%&/\()?;,:..<>+-' < /dev/urandom | fold -w12 | head -n1 > $HOME/.ssh/passphrase && chmod 400 "$HOME/.ssh/passphrase"
mjscosta commented
Modify also:
ssh-keygen -t rsa -b 4096 -o -a 100 -q -N $(cat "$HOME/.ssh/passphrase") -f "$HOME/.ssh/id_rsa"