Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
追è¨: (2015/8/3) 大éã®ã¯ã¦ããä»ããã®ã§ ç¶ã ãæ¸ãã¾ããã sshã使ç¨ãã¦ãã人ã¯æååãæ軽ã«æå·åã»å¾©å·åã§ããã¨ãã話ã ãã®ãã¯ããã¯ã使ãã°è²ã ã»ãã¥ã¢ã«ãªãã®ã§ããããã ä»åã¯ã·ã§ã«ã¹ã¯ãªããä¸ã®å¹³æãã¹ã¯ã¼ããã»ãã¥ã¢ã«ä»£æ¿ããã å¹³æãã¹ã¯ã¼ãã¯ãããã ã·ã§ã«ã¹ã¯ãªããä¸ã§ãã¹ã¯ã¼ããå¿ è¦ã«ãªã£ãã¨ãã ã¨ããããå¹³æã§æ¸ãã¦ãã¾ããã¡ã #!/bin/sh PASSWORD="hoge" ãããã»ãã¥ã¢ã«ãããã é¢åãããã®ã¯å«ãªã®ã§ããªãã¹ãææã¡ã®ãã¼ã«ã§æå·åã復å·åãããã sshç¨ã® rsa ç§å¯éµã¨ãopenssl(大æµã®ç°å¢ã«å ¥ã£ã¦ãã)ã使ã£ã¦æ¹åãããã ç§å¯éµã®æºå ãã¹ã¯ã¼ããæå·åããã«ããã£ã¦ãç§å¯éµã使ç¨ããï¼ sshã常ç¨ãã¦ããå ´å㯠~/.ssh/id_rsa ã¨ããç§å¯éµãåå¨ããã ããã ããç§å¯éµãç¡ããã°
ã·ã§ã«ã¹ã¯ãªããã®ä¸ã§ãã¹ãã¼ã¹åºåããããã¯ã¿ãåºåãã®ã¬ã³ã¼ããæ±ããã¨ãããããã¨æãã¾ãã ãã¨ãã°ãååã®ã¨ã³ããªãAWS CLIã¨jqã使ã£ã¦ãAWSã®ELBããªã¥ã¼ã ãã¢ã¿ããããã¦ããEC2ã¤ã³ã¹ã¿ã³ã¹åãåºåããã¯ã³ã©ã¤ãã¼ãæ¸ãã - åå å·¥å ´æ¥èªãã®ã¹ã¯ãªããã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã i-ec56a9f5 vol-07d00601 servername i-ec56a9f5 vol-8f550991 servername ãã®ãããªã¬ã³ã¼ãã®ç¹å®ã®åãåãåºãã¦ãå¦çããéã«ã©ãããã®ãå¹ççããã¨ããã®ããã®ã¨ã³ããªã®ãé¡ã§ãã é常ã«å¤ã話é¡ãªã®ã§ãæããã·ã§ã«ã¹ã¯ãªãããæ¸ãã¦ãã人ã«ã¯èªæãªè©±ã§ã¯ããã¾ãããæè¿ãã·ã§ã«ã®æ¨æºæ©è½ã®è©±ãèãæ©ä¼ããªãã失ããã¤ã¤ããæè¡ã«ãªã£ã¦ãã¦ããæ°ããã¦ããã®ã§ãæ¹ãã¦ç¢ºèªã¨ãããã¨ã§ã ä¾ã¨ãã¦æããã¬ã³ã¼ããã
ãã¼ã æ¤ç´¢Â - ãã°ã¤ã³ | |  ãã«ã æè¡/UNIX/ãªãnohupãããã¯ã°ã©ã³ãã¸ã§ãã¨ãã¦èµ·åããã®ãå®çªãªã®ãï¼(æ¬ä¼¼ç«¯æ«, Pseudo Terminal, SIGHUPä») [ Prev ] [ Next ] [ æè¡Â ] ä½ããã¾ããå½ããåã®äºãã»ã»ã»ã¨æãããã ããã $ nohup long_run_batch.sh & SSHãããã°ã¢ã¦ãå¾ãå®è¡ãç¶ããããããã¸ã§ããã"&"ãä»ãã¦ããã¯ã°ã©ã¦ã³ãã¸ã§ãã¨ãã¦nohupããèµ·åããã®ã¯å®çªä¸ã®å®çªã§ããã ãããããnohupã使ããªãã¦ãå®è¡ãç¶ãããã¨ãåºæ¥ããããæ¹ããã£ãããããã«ã¯ãnohupãä»ãã¦ããã°ã¢ã¦ãæã«çµäºãã¦ãã¾ãããã¿ã¼ã³ãããã¨ãããã©ãã ããï¼ ããã¦ãããæ¥ããªãã®å¾è¼©ãååããããã«ã¤ãã¦ããªãã«è³ªåãã¦ããããããªãã¯ã©ãçããã ãããï¼ ãWebä¸ã§æ¤ç´¢ãããè¦ã¤ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}