This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/151 detachããGNU screenã®ã»ãã·ã§ã³ã«ãå¥ãªãµã¼ãããåæ¥ç¶ããããä¸åº¦ãã°ã¢ã¦ããã¦ããåæ¥ç¶ãããã¨ããã¨ãSSH Agent Forwardingããã¾ãæ©è½ããªããªã£ã¦ãã¾ãã¾ãã ãã®åé¡ã¯ãscreenä½ææã«è¨å®ãããSSHé¢é£ã®ç°å¢å¤æ°ï¼SSH_XXXXï¼ããåæ¥ç¶æã«ã¯ç¡å¹ãªå¤ã¨ãªã£ã¦ãããã¨ã«screenãæ°ã¥ããªãããã«èµ·ããã¾ãã å¾ã£ã¦ããã®åé¡ã解決ããããã«ã¯ãåæ¥ç¶ã®ç´åã«æ¥ç¶å ã® SSHé¢é£ã®ç°å¢å¤æ°ãã³ãã¼ããæ¥ç¶å¾ã«ãã®å¤ãåè¨å®ããå¿ è¦ãããã¾ãã 以ä¸ã¯ããããå®æ½ããããã®Shellã¹ã¯ãªããã®ä¾ã§ãã # fix ssh env if [ "$TERM" = "scree
ssh-agentãscreenã®ä¸ãã使ãæ¹æ³(NFS,äºéãã°ã¤ã³å¯¾å¿ç) ãssh-agent ã screen ã®ä¸ãã使ãæ¹æ³ãã®è¨å®ã¡ãã£ã¨æ¹é ã NFSã§/homeãå ±æããã¦ãããã¨ãèãã¦ãã¹ãåã§è¤æ°ã®ãªã³ã¯ãå¼µãã¨ãã äºéãã°ã¤ã³ã®ã¨ãã¯æåã«ãã£ããªã³ã¯ãå©ç¨ããã¨ãã®å¤æ´ã ãã¶ãã»ãã¥ãªãã£ã¯å¤§ä¸å¤«ã ã¨æããã©ãä¿è¨¼ã¯ãã¾ããã ãssh-agentãè¤æ°ã®ä»®æ³ç«¯æ«ãã使ãæ¹æ³ããã©ããã agent="$HOME/.tmp/ssh-agent/`hostname`" if [ -S "$agent" ]; then export SSH_AUTH_SOCK=$agent elif [ ! -S "$SSH_AUTH_SOCK" ]; then echo "no ssh-agent" elif [ ! -L "$SSH_AUTH_SOCK" ]; then l
ssh-agentãè¤æ°ã®ä»®æ³ç«¯æ«ãã使ãæ¹æ³ ãssh-agent ã screen ã®ä¸ãã使ãæ¹æ³ãã«ã¤ã³ã¹ãã¤ã¤ããã話ã åã家ã§ä½¿ã£ã¦ããPCã¯Windowsã§åãã¦ãã¾ãã¦ã Cygwin, CygTerm, PuTTYæ¥æ¬èªç, zshã使ã£ã¦ãã¾ãã SSHã§ãµã¼ãã«æ¥ç¶ããã¨ãã¯æ¥ç¶å ã§screenãåãããã§ããã©ã ãã¼ã«ã«ã§ã¯è¤æ°ã®PuTTYãåããã¦ãã¾ãã ãªããã¯èªåã§ããããã¾ãããã©ã Debianã ã¨SSHãã¤ã³ã¹ãã¼ã«ãã㨠~/.xsession ã ssh-agent ã®åããã»ã¹ ã«ãªããã§ããã©ãWindowsã ã¨ããããä»çµã¿ã§ã¯ãªãã®ã§ã ãããªé¢¨ã«ãã¦ããã¨ãã話ã§ãã ã¾ãssh-agentã®èµ·åã¯æ¬¡ã®ãããªã¹ã¯ãªãã(ååã¯ssh-start)ã§è¡ãã¾ãã #!/bin/sh ssh-agent | grep -v echo > "
GNU screen ã® ãã°å ±åãè¡ãªã ã¤ãã§ã« screen-devel ML ã«åå ãããã 次ã®ãããªã¡ã¼ã«ã ML ã«æµãã¦ãã: There is a much simpler solution http://www.2701.org/archive/200406150000.html The key is that SSH_AGENT need not point to a socket, it can point to a symbolic link to a socket. ãªãã»ã©ï½ ssh-agent ã¨éä¿¡ããããã® UNIX ãã¡ã¤ã³ ã½ã±ãã ãæã (ãã¹ååºå®ã®) ã·ã³ããªã㯠ãªã³ã¯ãä½ãããã«ãã¦ããã°ã ç°å¢å¤æ° SSH_AUTH_SOCK ã«ã¯ããã®ã·ã³ããªã㯠ãªã³ã¯ã®ãã¹åã è¨å®ãã¦ããã°æ¸ãã®ã§ screen ã®ä¸ã§ ssh ã使ãã¨ã便å©
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}