pocketPuTTYã®ä½¿ãæ¹ã¨ããããSSHã®ä½¿ãæ¹ã®æå¼ããå¿
è¦ããªããªããTelnetã§ã¯å±éºã¨ã¿ããªãè¨ã£ã¦ããããã¡ãã¡ã«æ¸ãã¦ãããã¾ããç¾å¨Telnetã許ãã¦ãããµã¼ãã¼ãããã許ããªããªãã¨æãããããã®ããã«ã¯ããã©ããªè¨å®ãªãã«ãSSHã®è¨å®ãã§ããããã«ãªã£ã¦ãããããããªãããã¨ããããã¯è¦å´ããã®ã§ãããã®çµé¨ãå«ãæ¸ãã¦ããã¾ãã
pocketPuTTYã¯TelnetãSSHãã§ãã¾ãã®ã§ããµã¼ãã¼å´ãTelnetã§ã¤ãªãã§è¨å®ãããããã½ã³ã³ä¸ã§æºåãã¦FTPã§è¨å®ãããã¯ããã¨æãã
ããããSSHã¨ã¯ãªã«ãã«ã¤ãã¦ã¯ã¦ã£ãããã£ã¢ã§ã¾ãã¯èªãã§æ¬²ãããå ¬ééµï¼publick keyï¼ã¨ãç§å¯éµï¼private keyï¼ã¨ãéµã¯ç§å¯ã«æ±ºã¾ã£ã¦ããã ãããã¨ãã観ç¹ããã¯ç解ãã«ãããããã£ãããµã¼ãã¼å´ã«ç½®ãéµã¨ã¯ã©ã¤ã¢ã³ãå´ã«ç½®ãéµããã£ã¦ãTelnetã§ã®éä¿¡ã¯çè´ããããã®ã«å¯¾ãã¦ãSSHã§ã®éä¿¡ã¯æå·åããã¦çè´ãã§ããªãã¨ç解ããã°ããã¨æããã¯ã©ã¤ã¢ã³ãï¼ãã½ã³ã³ï¼å´ã§æå·åãããã¼ã¿ã¯ãµã¼ãã¼å´ã§ã»ããã«ãªã£ã¦ããå¥ã®éµã§å ã®ãã¼ã¿ã«æ»ãããã
ãããã®çµé¨ã¯ãããã¤ã³ã¿ã¼ãããã¨ããªã¼ã ãã¹ãã®äºç®æã§ãã
ããªã¼ã ãã¹ãã¯panel.dreamhost.comã®å³ä¸ã®æ¹ã«ããSupport Wikiã§ãSSHãæ¤ç´¢ãã¦åºã¦ãããã¼ã¸ã®Windowsw PUTTYã®ã¨ããã®èª¬æãããããããã¨æãã
FTPã¯ããªã¼ã ãã¹ãã®å ´åã¯Webä¸ã®FTPãæã£ã¦ãã¾ããããããã®å ´åããããã®ãã¼ã«ã§ã¯wwwãã©ã«ãã¼ä»¥ä¸ã®å ´æãããããã®ãã¼ã«ã§ã¯è§¦ããªãã®ã§ãå¥éFTPã§ã¤ãªãæ¹æ³ãå¿ è¦ãWinFTPã¨ãããããããããããããä¸ã®www.webftp.skã¨ãã使ãããé ããã©ã
ãã¦ãã¾ãéµãä½ãå¿
è¦ãããã¾ããPuTTYã§ãã½ã³ã³ã§ã¤ããã¾ãã
SSHã«ã¯è¦æ ¼ãSSH-1ã¨SSH-2ããã£ã¦ãSSH-2ã«ãã¾ããSSH-2ãRSAã¨DSAã¨2種é¡ãã£ã¦ãããªã¼ã ãã¹ãã¯ãããã¯RSAã§æåãã¾ãããDSAã§æåãã¦ããä¾ããããã«ä¸ãã£ã¦ããã®ã§ãã©ã¡ãã§ãããã®ãããããªãããããã¯ãããã¯RSAã§ãã¡ã§DSAã§æåãã¾ããã
PuTTYã®ãµã¤ããhttp://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlãããputty.zipããã¦ã³ãã¼ããã¾ããããã ã¨å ¨é¨å ¥ãã§ããããã¼ãä½ãã ããªãã°puttygenã¨ããã®ã ãã§ãããputtyãã¼ã¸ã§ãã¬ã¼ã¿ã¼ã®æå³ã¨æãã¾ããC:\Windows\system32ã«å±éããããã«ã¨æ¸ãã¦ããã¾ãããä¼ç¤¾ã®ãã½ã³ã³ã§ã¢ããã³æ¨©éããªãã®ã§ããã¹ã¯ãããã§ããã¾ããããã¼ãä½ãã ããªãåé¡ãªãããã§ãã
PuTTYgenã§ãã¼ãä½ãã
ãªãã·ã§ã³ã§SSH2-DSAãé¸ã³ã¾ããPuTTYã®è§£èª¬ã§ã¯RSAãé¸ã¹ã¨æ¸ãã¦ããã®ã§ãããä¸ã«æ¸ããããã«DSAã®æ¹ãæåä¾ããããã«ä¸ãã£ã¦ããã®ã§ãã®è¾ºã¯å¥½ã¿ã§ãããããã¨ãã¦ã¯DSAããå§ãããã¦ã¹ãã©ã³ãã ã«åããããã«è¨ãããã®ã§ãç´ ç´ãå¾ãã¨ã§ããããã¾ãã
åºæ¥ä¸ãã£ãããå
¬ééµã¨ç§å¯éµ(public key , private key)ãããããããååã§ãkey.pubã¨ãkey.ppkã¨ãã§ããããããã¨ãããã¹ã¯ããããªã©ã«ä¿åããããã®ã¨ããã¹ã¯ã¼ãä¿è·ããããã©ã¡ããã§èãããã¨æãã¾ãããããªãã§ããã¨æãã¾ãã
ãããããé£ããã¨ããã§ãå ¬ééµã¯ãã¹ããµã¼ãã¼ï¼ããªã¼ã ãã¹ãããããã¤ã³ã¿ã¼ãããï¼ã«ã»ããããªããã°ãªããªãããç§å¯éµã¯ã¢ãã¨ã¹WS011SHã®PocketPuTTYã§ããã®ãªããããã«ã»ããããªããã°ãªããªãããã¹ãã¯èªåã®ã¨ãªã¢(~/)ã®ä¸çªä¸ã®ã¨ããã®ãããsshï¼.sshï¼ã¨ãããã©ã«ãã¼ã«authorized_keyã¨ããããã¹ããã¡ã¤ã«ã¨ãã¦å ¬ééµãåå¨ããªããã°ãããªããæé ã¯ããããããããããã©ãã¾ãã¯ãã®ç®çãç解ãããã¨ã
ããªã¼ã ãã¹ãã®å ´åã
panel.dreamhost.comããwebftpã§home directoryã«key.pubãã³ãã¼ãããååãauthorized_keysã«å¤ãã¦ã.sshãã©ã«ãã¼ï¼ãªããã°ä½ã£ã¦ï¼ã«ã³ãã¼ããããã½ã³ã³ä¸ã§å¤ãã¦ããã¢ãããã¼ãï¼ftpï¼ãã¦ãããããã¨éè¦ãªã®ããchmodã§.sshã®æ¨©éã755ã«ãauthorized_keysã®æ¨©éã644ã«å¤æ´ããå¿
è¦ãããã
ãã§ã«ãªãããã®çç±ã§.sshããã£ã¦ã権éãOkãauthorized_keysããã£ã¦ã権éãOï½ãªå ´åã次ã®ã³ãã³ããç¨ããã
ssh-keygen -i -f key.pub >> ~/.ssh/authorized_keys
å
¨é¨ãã£ã¦ãã¾ãè¡ããªãå ´åãä¸è¨ãå度è¡ãã®ã¯ãã£ã¦ã¿ã価å¤ãããã¨æããWindowsã¨Unixã®éãè¡ãæ¥ãã¦ããã¹ããã¡ã¤ã«ã®æ¹è¡ã³ã¼ãã§ã¯ã¾ã£ããã¨ã®ãªã人ã¯ããªãã¨æãã®ã§ããã¼ã«ãããã°ãã¼ã«ã¯è©¦ã価å¤ãããã¨æãã
">>"ã¯éè¦ã">"ãäºã¤ã§ããã²ã¨ã¤ã ã¨æ°ããauthorized_keysãåºæ¥ã¦ãã¾ããããã§ããã¾ãã¾ãããã
ããªã¼ã ãã¹ãã®å ´åã®ä¾ã§ãããputtygenã§ãã¼ãåºæ¥ãç¶æ
ã§ãå³ã¯ãªãã¯=>ã³ãã¼=>ã¡ã¢å¸³=>ãã¼ã¹ã=>authorized_keysã§ä¿åãã¨ããæ¹ããã¨ã§ååå¤æ´çããªãã¦ä¾¿å©ã¨ããã¦ã¼ã¶ã¼ããã¦æåãã¦ãããããªã®ã§ããããç´¹ä»ãã¦ããã¾ãã
ãããã¤ã³ã¿ã¼ãããã®å ´åã
sakuraã®ãã¡ã¤ã«ããã¼ã¸ã£ã¼ã§ã¯ã§ãã¾ããã®ã§ãåã«ãæ¸ãã¾ãããããããä¸ã®ä¸è¬ã®WebFTPã使ããããã½ã³ã³ã®ftpã½ããã使ãããtelnetãã¦ã®ä½æ¥ã«ãªãã¾ãããã¨ã¯åãã~/.sshãã©ã«ãã¼ã®ä¸ã«authorized_keysã¨ããå½¢ã§å
¬ééµãç½®ããå称å¤æ´ã§ãããããssh-keygenã使ã£ã¦ããããã²ãã£ã¨ãããã¨ãã£ã¿ã¼ã§ä»ãå ãã¦ãããã®ãããããªããã©ããããã¯ãã£ã¦ãã¾ããã
PocketPuTTYã®è¨å®ã
Sessionã®ãã¼ã¸ã§ã»ãã·ã§ã³åãä½ã£ã¦ã»ã¼ãããªããããã¨ããã¨æããã³ãã¯ã·ã§ã³ConnectionãSSHã«ãããã¿ãã®ãã¼ã£ã¨å³ã®æ¹ã®ã¿ãã«ãã¼ãå
¥ããã¨ãããããã®ã§ãkey.ppkããããã¦ãããåç
§ãã¾ãããã£ã¨ããã®åã«key.ppkããã½ã³ã³ããæã£ã¦ããªããã°ãªãã¾ããããå°ãããããããã®å ´åãã¡ã¼ã«ã«æ·»ä»ãã¦éãã¾ãããæ·»ä»ãã¡ã¤ã«ãä¿åããã¨My Documentã®ä¸ã«key.ppkã¨ãã¦åã¾ãã¾ãã®ã§ãPocketPuTTYã§æå®ããã
æ¥ç¶ã¯ãç§ã®å ´åã確å®ã«ãããã®ã§ãè¨å®ã®æ¥ç¶ã§æ¥ç¶ç¶æ
ã«ãã¦ãããPocketPuTTYãã¤ãªãã¾ãããã¾ããããªãã¨ããã¾ãããã¾ãããä¿¡ãã¾ããï¼ã§ã¤ãªãããã¨ããã£ã¦ãã®ç¶æ
ã§ã¯ãã¶ãtelnetç¶æ
ã§ãæå·åããªããã¦ããªãã¨æãã¾ãããã¾ãè¡ãã¨authenticated by ãªãã¨ãããã¨ãã¨åºã¾ãã
ããªã¼ã ãã¹ãã¨ãããã§ã¯ãã¹ãåã®èãæ¹ãéãã¾ããxxxï¼ãã·ã³åï¼.dreamhost.comãxxx(ãã¡ã¤ã³å).sakura.ne.jpã§ãã
ãã®å¾ãã°ã¤ã³ããã¹ã¯ã¼ãã¯èªåã®ï¼ftpã¨åãï¼ã使ãã¾ãã
以ä¸