--- /dev/null
+#!/bin/sh
+
+set +x
+
+#check if apt exists
+if sudo apt-get install libnet-openssh-perl libio-pty-perl;then
+ echo "installed."
+ exit
+fi
+#check if yum exists
+if sudo yum install perl-Net-OpenSSH perl-IO-Tty;then
+ echo "yum-get is installed."
+ sudo yum install perl-Net-OpenSSH perl-IO-Tty
+ exit
+fi
+#check if cpanm exists
+if [ -x "$(command -v cpanm)" ];then
+ echo "cpanm is installed."
+ cpanm IO::Pty
+ cpanm Net::OpenSSH
+ exit
+else
+ echo "cannot install dependencies: apt-get and yum and perlbrew/cpanm are not available." >&2
+ exit 1
+fi
# and is available at http://www.eclipse.org/legal/epl-v10.html
##############################################################################
#
-# debian dependecies: apt-get install libnet-openssh-perl libio-pty-perl
+# debian dependencies: apt-get install libnet-openssh-perl libio-pty-perl
#
use strict;
By default, exchanges are altered according to the rules specified inside this script and easily
modifiable. This behaviour can be disabled with the '-s' option.
For more convenience, the server hello handshake can also alternatively be replaced by the content
-of an external file rather instead of writing specific rules.
+of an external file instead of writing specific rules.
OPTIONS :
# and is available at http://www.eclipse.org/legal/epl-v10.html
##############################################################################
#
-# debian dependecies: apt-get install libnet-openssh-perl libio-pty-perl
+# debian dependencies: apt-get install libnet-openssh-perl libio-pty-perl
#
use strict;