netcatã使ããã«SSHã®ProxyCommandã§å¤æ®µssh
Aã®ãµã¼ãã«Bã®ãµã¼ããçµç±ãã¦SSHæ¥ç¶ããå ´å
ä»ã¾ã§ã¯netcatãå©ç¨ãã¦ãã¾ããã
OpenSSH 5.4ããã¯netcatã®æ©è½ãçµã¿è¾¼ã¾ããããã§ãã
ã¨ãããã¨ã§è©¦ãã¦ã¿ã¾ããã
~/.ssh/configãã®å 容
å¤æ´å [netcat使ç¨]
nc %h %p
Host hoge_host
HostName 192.168.1.10
ProxyCommand ssh -l hoge_name 192.168.0.5 nc %h %p
å¤æ´å¾ [netcatæªä½¿ç¨]
-W %h:%p
Host hoge_host HostName 192.168.1.10 ProxyCommand ssh -l hoge_name 192.168.0.5 -W %h:%p
æ¥ç¶
ssh hoge_host
æå %h:%p ã %h %p ã«ãã¦ãã¦ç¹ããã¾ããã§ãããã
ããåé¡ãªãæ¥ç¶ã§ãã¾ããã¼ã
çµè«
ã¾ããã©ã£ã¡ã§ãåããã¨ãã§ããã®ã§ãã
- ä¸ç¶ãµã¼ãã§netcatããªãã¦ããã
- æ¥ç¶ä¸ã«ä¸ç¶ãµã¼ãã§netcatã®ããã»ã¹ãåããªã
- ä¸ç¶ãµã¼ãã®SSHã®ãã¼ã¸ã§ã³ã¯åããªã
ã¨ãã£ãå©ç¹ãããã®ã§
æå
ã®OpenSSHã®ãã¼ã¸ã§ã³ã5.4以ä¸ã§ããã°
Wãªãã·ã§ã³ã使ã£ãæ¹ãè¯ãã®ããªã¨æãã¾ããã