We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 795582b commit 3d1b304Copy full SHA for 3d1b304
oobe.sh
@@ -136,7 +136,8 @@ function import_ssh_keys {
136
echo $KEY | sudo tee -a /home/clab/.ssh/authorized_keys > /dev/null
137
;;
138
False*)
139
- powershell.exe -NoProfile -Command "ssh-keygen -t rsa -b 4096 -f \$env:userprofile\.ssh\id_rsa -N ''" > /dev/null 2>&1
+ SSH_CMD="ssh-keygen -t rsa -b 4096 -f \$env:USERPROFILE\.ssh\id_rsa -N '\"\"'"
140
+ powershell.exe -Command $SSH_CMD
141
KEY=$(powershell.exe -NoProfile -Command 'Get-Content $env:userprofile\.ssh\id_rsa.pub')
142
143
0 commit comments