sshã®ãã¼ããã©ã¯ã¼ãã£ã³ã°ãæ¯åã³ãã³ãæã£ã¦èµ·åããã®ãé¢åãªã®ã§ï¼æ¥ç¶ãç¶æããããã®ã·ã§ã«ã¹ã¯ãªãããæ¸ããï¼ #! /bin/sh while true; do # ããã«ãã©ã¯ã¼ãã£ã³ã°ã®ã³ãã³ããæ¸ã ssh -C -N -L 50143:localhost:143 hostname sleep 1 done ã¨ãã£ã¦ãï¼ãããããã¨ãªãã¦ï¼ç¡éã«ã¼ãã®ä¸ã§ããã»ã¹ãèµ·åãã¦ãã ãï¼ããã»ã¹ããªãããã®çç±ã§çµäºãããã«ã¼ããåã£ã¦èµ·åããªããï¼ ãã®ã¾ã¾ã ã¨ï¼ãããã¯ã¼ã¯ããªãã¨sshã失æãã¾ãã£ã¦ç¡é§ãå¤ãã®ã§ï¼ä¸å®è©¦è¡åæ°ãè¶ ããããã°ãããã¨ãªãããªãããã«ããï¼ #! /bin/sh TRYCOUNT=0 TRYMAX=5 while true; do # ããã«ãã©ã¯ã¼ãã£ã³ã°ã®ã³ãã³ããæ¸ã ssh -C -N -L 50143:localhost:143
{{#tags}}- {{label}}
{{/tags}}