We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f65a7 commit bb0a82dCopy full SHA for bb0a82d
ssh-manager.sh
@@ -357,12 +357,13 @@ SSHSearchCredential(){
357
#echo $serverPort
358
#Here we go connecting to the server
359
printf "%s${success}Connecting to ${serverName} ...${reset}\n"
360
- if [ ! -z $serverKeyFile ]
+ if [ ! -z $serverKeyFile ];
361
then
362
commande="ssh -i "$serverKeyFile" -p "$serverPort" "$serverUser""@""$serverIp" "$serverOption""
363
#echo $commande
364
$commande
365
- elif [ ! -z $serverPassword }
+ elif [ ! -z $serverPassword ];
366
+ then
367
commande="sshpass -p "$serverPassword" ssh -p "$serverPort" "$serverUser""@""$serverIp" "$serverOption""
368
369
0 commit comments