You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
398 B
15 lines
398 B
10 months ago
|
#!/bin/bash
|
||
|
|
||
|
# Author: Madhurranjan Mohaan <madhurranjan.mohaan@gmail.com>
|
||
|
|
||
|
t_Log "Running $0 - testing telnet against ssh port"
|
||
|
t_Log "Making sure port 22 is listening by calling ssh installer"
|
||
|
|
||
|
t_InstallPackage openssh-server openssh-clients
|
||
|
t_ServiceControl sshd start
|
||
|
|
||
|
telnet_port_22=`telnet 127.0.0.1 22 << EOH
|
||
|
EOH`
|
||
|
echo $telnet_port_22 | grep "Escape character is '^]'"
|
||
|
t_CheckExitStatus $?
|