mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 01:43:25 +00:00
Add in csftp command
This commit is contained in:
parent
54499686bf
commit
96c73a0080
4 changed files with 22 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue