å
å¼ã®ããã«åããããªè¨å®ã§ãã°ã¤ã³ãããµã¼ãã¼ãè¤æ°å°ããã¨ããã Host *.myproj.example.com ã§ã¾ã¨ãã¦è¨å®ã§ãããã®ã®ã ssh ã³ãã³ãã§ãã¹ãåãæå®ããã®ãé¢åã ã
ãã®å ´åãHost 㨠hostname ã§çãã¨ã¤ãªã¢ã¹ãä½ããã¨ãã§ãããããããã㨠Host *.myproj.example.com ã®è¨å®ã¯é©ç¨ãããªããªãã Host ããããã³ã°ããã®ã¯æ¬å½ã®ãã¹ãåã§ã¯ãªããã³ãã³ãã§æå®ãããã¨ã¤ãªã¢ã¹ã®æ¹ã ããã ã
Host ã¨ã¤ãªã¢ã¹ã®ãã¿ã¼ã³ ã§ããããããä»åº¦ã¯ã¨ã¤ãªã¢ã¹ãããªããã¹ãåã§ãã°ã¤ã³ããå ´åã«è¨å®ãé©ç¨ãããªããªãã Match host ã使ãã¨æ¬å½ã®ãã¹ãåã§ãããã§ããã®ã§ã Host ãã使ããããã
# ã¨ã¤ãªã¢ã¹ã®è¨å® Host isu1 hostname isu1.myproj.example.com Host isu2 hostname isu2.myproj.example.com Host isu3 hostname isu3.myproj.example.com # ã¨ã¤ãªã¢ã¹ã«å¹ããªã Host *.myproj.example.com User ubuntu # ã¨ã¤ãªã¢ã¹ã使ã£ãæããå¹ããªã Host isu? User ubuntu # ã¨ã¤ãªã¢ã¹ã¨æ¬å½ã®ãã¹ãåã©ã£ã¡ã ssh ã«æå®ãã¦ãå¹ãããã«ä¸¡æ¹ã®ãã¿ã¼ã³ãæ¸ã Host isu? *.myproj.example.com User ubuntu # Match host ã使ãã°æ¬å½ã®ãã¹ãåã®ãã¿ã¼ã³ãæ¸ãã ãã§ã¨ã¤ãªã¢ã¹ã«ãå¹ã Match host *.myproj.example.com User ubuntu