From 6b5862fba1d188d97ca8779b714d099d3be89f4b Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 4 Jun 2017 01:06:16 +0200 Subject: [PATCH] fix --- shellinabox_sshwrapper.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/shellinabox_sshwrapper.sh b/shellinabox_sshwrapper.sh index 6a1728f..0cdc41f 100755 --- a/shellinabox_sshwrapper.sh +++ b/shellinabox_sshwrapper.sh @@ -1,12 +1,17 @@ #!/bin/bash +# +set -ex #  -read -p "SSH remote host (hostname or ip address): " host; +read -p "SSH remote host (hostname or ip address) [localhost] : " host; +[[ -z "${host}" ]] && host=localhost; # read -p "If a puplic_key authentification?: [y/N] : " puplic; # -read -p "SSH remote port (22): " port; +read -p "SSH remote port [22] : " port; +[[ -z "${port}" ]] && port=22; # -read -p "SSH remote username: " username; +read -p "SSH remote username [pi] : " username; +[[ -z "${username}" ]] && username=pi; # if [ "$puplic" == "y" ]; then