From ed99c01b820b676fbb712449aabc5042ea11d5a3 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 23 Jun 2019 14:17:36 +0200 Subject: [PATCH] remove ssh connexion confirmation --- demo_lxc_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo_lxc_build.sh b/demo_lxc_build.sh index f1b6d89..d355958 100755 --- a/demo_lxc_build.sh +++ b/demo_lxc_build.sh @@ -114,7 +114,7 @@ sudo mkdir /var/lib/lxc/$LXC_NAME1/rootfs/home/ssh_demo/.ssh >> "$LOG_BUILD_LXC" sudo cp $HOME/.ssh/$LXC_NAME1.pub /var/lib/lxc/$LXC_NAME1/rootfs/home/ssh_demo/.ssh/authorized_keys >> "$LOG_BUILD_LXC" 2>&1 sudo lxc-attach -n $LXC_NAME1 -- chown ssh_demo -R /home/ssh_demo/.ssh >> "$LOG_BUILD_LXC" 2>&1 -ssh $ARG_SSH $LXC_NAME1 "exit 0" # Initie une première connexion SSH pour valider la clé. +ssh -o StrictHostKeyChecking=no $ARG_SSH $LXC_NAME1 "exit 0" # Initie une première connexion SSH pour valider la clé. if [ "$?" -ne 0 ]; then # Si l'utilisateur tarde trop, la connexion sera refusée... ??? ssh $ARG_SSH $LXC_NAME1 "exit 0" # Initie une premier connexion SSH pour valider la clé. fi