ssh 访问 testbed

#!/bin/sh

if [ $1 = "01l" ]
then
ssh -X [email protected] -p 10022
          
elif [ $1 = "01w" ]
then
ssh -X [email protected] -p 11022

elif [ $1 = "02l" ]
then
ssh -X [email protected] -p 20022  
elif [ $1 = "02w" ]
then
ssh -X [email protected] -p 21022
elif [ $1 = "03l" ]
then
ssh -X [email protected] -p 30022        
elif [ $1 = "03w" ]
then
ssh -X [email protected] -p 31022

elif [ $1 = "04l" ]
then
ssh -X [email protected] -p 40022  
elif [ $1 = "04w" ]
then
ssh -X [email protected] -p 41022

elif [ $1 = "05l" ]
then
ssh -X [email protected] -p 10022    

elif [ $1 = "05w" ]
then
ssh -X [email protected] -p 11022

elif [ $1 = "06l" ]
then
ssh -X [email protected] -p 20022

elif [ $1 = "06w" ]
then
ssh -X [email protected] -p 21022

elif [ $1 = "07l" ]
then
ssh -X [email protected] -p 30022     

elif [ $1 = "07w" ]
then    
 ssh -X [email protected] -p 31022
elif [ $1 = "08l" ]
then
ssh -X [email protected] -p 40022   

elif [ $1 = "08w" ]
then
       ssh -X [email protected] -p 41022

elif [ $1 = "09l" ]
then
ssh -X [email protected] -p 10022       

elif [ $1 = "09w" ]
then
   ssh -X [email protected] -p 11022

elif [ $1 = "10l" ]
then
    ssh -X [email protected] -p 20022  
elif [ $1 = "10w" ]
then
ssh -X [email protected] -p 21022

elif [ $1 = "11l" ]
then
ssh -X [email protected] -p 30022   

elif [ $1 = "11w" ]
then
ssh -X [email protected] -p 31022

elif [ $1 = "12l" ]
then
ssh -X [email protected] -p 40022       

elif [ $1 = "12w" ]
then
ssh -X [email protected] -p 41022

elif [ $1 = "13l" ]
then
ssh -X [email protected] -p 10022        

elif [ $1 = "13w" ]
then
  ssh -X [email protected] -p 11022

elif [ $1 = "14l" ]
then
ssh -X 172.16.10.166 -p 20022     

elif [ $1 = "14w" ]
then    
ssh -X [email protected] -p 21022
elif [ $1 = "15l" ]
then
ssh -X [email protected] -p 30022        

elif [ $1 = "15w" ]
then
ssh -X [email protected] -p 31022

elif [ $1 = "16l" ]
then
ssh -X [email protected] -p 40022   

elif [ $1 = "16w" ]
then
ssh -X [email protected] -p 41022

elif [ $1 = "rl" ]
then
ssh -X [email protected] -p 2022

elif [ $1 = "rw" ]
then
ssh -X [email protected] -p 3022

else [ $1 = "v1l" ]
ssh -X [email protected] -p 10022
fi #ifend



你可能感兴趣的:(ssh 访问 testbed)