Add in csftp command

This commit is contained in:
Duncan Ferguson 2015-11-15 22:17:29 +00:00
parent 54499686bf
commit 96c73a0080
4 changed files with 22 additions and 1 deletions

View file

@ -71,6 +71,8 @@ my %default_config = (
telnet_args => "",
ssh => 'ssh',
ssh_args => "",
sftp => 'sftp',
sftp_args => "",
extra_cluster_file => '',
external_cluster_command => '',
@ -113,9 +115,10 @@ sub new {
$comms = 'telnet' if ( $comms eq 'tel' );
$comms = 'console' if ( $comms eq 'con' );
$comms = 'ssh' if ( $comms eq 'lusterssh' );
$comms = 'sftp' if ( $comms eq 'sftp' );
# list of allowed comms methods
if ( 'ssh rsh telnet console' !~ m/\b$comms\b/ ) {
if ( 'ssh rsh telnet sftp console' !~ m/\b$comms\b/ ) {
$self->{comms} = 'ssh';
}
else {