Skip to content
Snippets Groups Projects
Commit 413c6a40 authored by Bob Mottram's avatar Bob Mottram
Browse files

Option to verify the ssh server public key

parent 968462e1
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ function configure_ssh_client {
if [ -f /usr/bin/pacman ]; then
sudo pacman --noconfirm -S openbsd-netcat
else
sudo apt-get -yq install tor connect-proxy
sudo apt-get -yq install tor connect-proxy vim-common
fi
#sudo sed -i 's/# PasswordAuthentication.*/ PasswordAuthentication no/g' /etc/ssh/ssh_config
......@@ -277,7 +277,14 @@ function setup_avahi_client {
fi
}
while [[ $# > 1 ]]
function verify_ssh_server_key {
ssh -o VisualHostKey=yes -o FingerprintHash=sha256 ${PROJECT_NAME}.local -p 2222 &
pid=$!
sleep 15
kill ${pid}
}
while [[ $# > 0 ]]
do
key="$1"
......@@ -297,6 +304,10 @@ do
shift
SETUP_CLIENT_APP_NAME=${1}
;;
-v|--verify|--verifykeys)
verify_ssh_server_key
exit 0
;;
-m|--mesh)
shift
MESH_CLIENT_INSTALL=${1}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment