This commit is contained in:
Your Name 2017-06-04 01:06:16 +02:00
parent 50fba1b2f1
commit 6b5862fba1

View file

@ -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