home · contact · privacy
Set empty passphrase for server ssh keys.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 3 Nov 2021 19:18:05 +0000 (20:18 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 3 Nov 2021 19:18:05 +0000 (20:18 +0100)
bullseye/setup_scripts/setup_play.sh
buster/setup_scripts/prepare_to_meet_server.sh

index c28bbd3c5c70d08d7e4bed0bda1468b0ef2dbd23..a29b2f6fb53bf2aa9c68ccb0395992313f391fcf 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh
 set -e
-set -x
 
 if [ "$#" -lt 1 ]; then
   echo "Need public key ID and optionally old server IP."
index 569bf74fba314c35580836eb2b6d3deeec049441..df2aa419fdda7af90bed3fd924cc0f32dcdef4cb 100755 (executable)
@@ -10,7 +10,7 @@ target="$1"
 
 # We need a public key to copy over, so generate it if not found.
 if [ ! -f ~/.ssh/id_rsa.pub ]; then
-    ssh-keygen
+    ssh-keygen -N ""
 fi
 
 # Add target to ~/.ssh/known_hosts so we don't get