å æ¥ããµã¼ãã¼ã®ã»ãã¥ãªãã£è¨å®ããªã«ããã°ãããããããªããã¨ç¸è«ãããã¾ãã¦ã èªåãåå¿è ã®æã©ãã¾ã§ããã°ãããããããæå½ãããã ãã«ãã£ã¦æ²¼ã«å ¥ã£ã¦ããã®ãæãåºããªããèªé¯æ§ç¯ããã¨ãã®ã¡ã¢ãå ã«ã¾ã¨ãã¦ã¿ã¾ããã 注æ ã»ãã¥ãªãã£å¯¾çã¯ç¨éãå ´åãªã©ã«ãã£ã¦éãã¾ãã èªåã§ç解ããããã§èªå·±è²¬ä»»ã§ãããããã¾ãã 対象èªè Linuxã®ãµã¼ãã¼ã建ã¦æ £ãã¦ããªã人 Linuxã¯ããç¨åº¦ãããã人(èªåã§ããã±ã¼ã¸ãå ¥ãããããµã¼ãã¹ãæ¢ãããã§ãã) ã©ã¤ã³ããã âã¯å°å ¥ã®éè¦åº¦ã¨å°å ¥ã®å®¹æãããå人çåè¦ããã¤ããå¤ã§ãã 4ã¤ä»¥ä¸ã"æä½éãããã¨"ã ã¨æã£ã¦ãã ããã sshd
以ä¸ã®ç°å¢ã§ã®è¨å®ã¨ãªãã¾ãã æ¥ç¶å ï¼Macbook Air (LinuxOSã§ãå¿ç¨å¯è½ã§ãï¼ æ¥ç¶å ï¼VPSä¸ã«ç«ã¦ã¦ããCentOS6.5 åæã¨ã㦠äºåã«VPSã«ã¯ã³ã³ã½ã¼ã«ã§ã®æä½ã»ã¾ãã¯sshãã°ã¤ã³ãå¯è½ã§ããã㨠ã©ã®ãããªè¨å®ãããã°å ¬ééµèªè¨¼ã§ã®sshæ¥ç¶ãã§ããã ãã£ããè¨ãã¨ã Macbookå´ã§éµãä½æãããã®éµãVPSãµã¼ãã«ç»é²ãã ã ãã§ãã Macbook ã¨ãVPSã¨ãCentOSã¨ãæé ã«æ¸ãã¨ã¡ãã£ã¨ãããããã®ã§ã æ¥ç¶å ã§ããMacbookã¯ã¯ã©ã¤ã¢ã³ã æ¥ç¶å ã§ããVPSã¯ãµã¼ã ã¨è¡¨ç¾ãã¾ãã ##1.ã¯ã©ã¤ã¢ã³ãå´ã§èªè¨¼ç¨ã®éµãä½æ ã¯ã©ã¤ã¢ã³ãã§ä»¥ä¸ãå®è¡ ####å ¬ééµã¨ç§å¯éµã®ä½æ $ pwd /Users/hogehoge/.ssh å ¬ééµã¨ç§å¯éµãä½æãã¾ããéµã®ç¨®é¡ã¯RSAã«è¨å® $ ssh-keygen -t rsa G
# vi /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT #-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m
ãããããªããiCloudã«å¯¾å¿ãã¦ãã2å°ã®Macï¼Lionã¾ãã¯Mountain Lionï¼ããæã¡ã§ããã°ãã»ãã®æ°è¡ã®ã³ãã³ãã©ã¤ã³ãã¿ã¼ããã«ã«å ¥åãããã¨ã«ãããã©ãããã§ãiCloudã®ãããã¯ã¼ã¯çµç±ã§ãã¼ã PCã¸ã®ãªã¢ã¼ãSecure Shellï¼SSHï¼ã¢ã¯ã»ã¹ãå¯è½ã§ãï¼ ä½æ¥ã®åã«ãããããããã¤ãã®è¨å®ããã¦ããå¿ è¦ãããã¾ããã¾ãããBack to My MacããiCloudä¸ã§æå¹ã«ãªã£ã¦ãããã¨ã確èªãã¾ãï¼ããã¯ãã·ã¹ãã ç°å¢è¨å®ãï¼ãiCloudãï¼ãBack to My Macããã確èªã§ãã¾ãï¼ã 次ã«ããã¼ã PCãå ±æå¯è½ã«è¨å®ãã¾ãï¼ãã·ã¹ãã ç°å¢è¨å®ãï¼ãå ±æããããå°ãªãã¨ãããã¡ã¤ã«å ±æãã¨ããªã¢ã¼ããã°ã¤ã³ãã®2ã¤ãæå¹ã«ãã¾ãï¼ãå ¨ã¦ã®è¨å®ãå®äºããã°ãiCloudã®ãããã¯ã¼ã¯ã使ã£ã¦ããã¼ã PCã¸ã¤ã³ã¿ã¼ãããåç·çµç±ã§ãªã¢ã¼ãã
æ´æ°æ¥ï¼2005/09/02 å ã»ã©è¨å®ããæ¡ä»¶ã§ãLANå ãå¤é¨ããæ¥ç¶ãè¡ããããã« /etc/hosts.allow ãç·¨éãã¾ããhosts.allow ã¯æ¥ç¶ã®è¨±å¯ãè¡ããã¡ã¤ã«ã§ãã æ¥ç¶ã®æ¡ä»¶ã¨ãã¦ã å¤é¨ããæ¥ç¶ããã¢ãã¬ã¹ã 200.200.200.200 ã¨åºå® LANå ã®ã¢ãã¬ã¹ã 192.168.1.1ã254 æ¥ç¶ããã¨ãã¯æå®ã®ã¡ã¼ã«ã¢ãã¬ã¹ï¼ããã§ã¯webmaster@vine-linux.ddo.jpï¼ã¸ééãè¡ã ã¨ãã¾ããããã§ã¯æ¥ç¶ã®è¨å®ãã¡ã¤ã« hosts.allow ãéãã¾ããã³ãã³ãã©ã¤ã³ç«¯æ«ããã
æå·åã«ããã·ã§ã«ãã°ã¤ã³ãå¯è½ãªSSHããã®ã»ãã¥ãªãã£ã確ä¿ãããæ段ã使ç¨ãã¦ãã¦ãï¼è¨å®ã«ãã£ã¦ã¯å±ãããã¼ã«ã«ãªã£ã¦ãã¾ãå¯è½æ§ãããã 次ã«æããè¨å®ã¯ï¼SSHãå©ç¨ããä¸ã§ãã²ã¨ãè¨å®ãã¦ããããã # vi /etc/ssh/sshd_config ........... PermitRootLogin no PermitEmptyPasswords no PasswordAuthentication no AllowUsers hoge CheckHostIP yes ä¸ãã3é ç®ã¯ï¼ãã¹ã¦ãnoãã«ãã¦ããããä¸ããé ã«ï¼ãrootã§ã®ãã°ã¤ã³æ段ã許ãããï¼ããã¹ã¯ã¼ããè¨å®ããã¦ããªãã¦ã¼ã¶ã¼ã§ã®ãã¹ã¯ã¼ãç¡ãã®ãã°ã¤ã³ã許ãããï¼ãRSAã«ããæå·åãã°ã¤ã³ãå¿ é ã¨ããããã§ããã AllowUsersè¡ã¯å¿ é ã§ã¯ãªããã®ã®ï¼ãã°ã¤ã³ã§ããã¦ã¼ã¶ã¼ãéå®ããããã
ã¾ãã¯ãMacFUSE ã£ã¦ä½ï¼ã£ã¦ãã¨ããå§ããªãã¨ãããªããã ãã© (åãæè¿èª¿ã¹ã¦ããã£ãã®ã§) è¦ããã« Mac ç FUSE ã®å®è£ ã FUSE ã£ã¦ã®ã¯ã¦ã¼ã¶ã¹ãã¼ã¹ã§åä½ãããã¡ã¤ã«ã·ã¹ãã ã®ãã¨ã§ãé常 Linux ãªã©ã§ã¯ã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ã¨ãã¦çµã¿è¾¼ã¾ãªãã¨ãªããªããFUSE èªä½ã¯ãã¡ã¤ã«ã·ã¹ãã ã® API ã§åä½ã§ä½¿ãå ´åã¯éçºè ã使ããã¨ã«ãªãããã©ãå©ç¨è 㯠sshfs ãªã©ã使ãã°ãã®ãããã®ãã¨ã¯ã¾ã£ããæ°ã«ãã使ããã MacFUSE ã§å¼·èª¿ããã¦ããã¡ãªããã¨ãã¦ã¯ NTFS ã®èªã¿æ¸ããåºæ¥ãããã«ãªãã£ã¦ãã¨ãããããã¦ãããç¾ç¶ã® Mac ã§ãèªã¿æ¸ãåºæ¥ãã®ã§ãããæ¸ãè¾¼ã¿ã 2GB ã¾ã§ã¨ããå¶ç´ãããã(ããããã£ãã¯ã) ãã©å人çã«ã¯ sshfs ã§ãããã¯ã¼ã¯å ããã¦ã³ãããã®ã便å©ã ã¨æãã sshfs ã¨ã¯ ssh ã使ã£ããããã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}