[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:28389] Re: Can't execute remote command on SSH.
岩室ã§ã™ã€‚
自己解決ã—ã¾ã—ãŸã€‚
In message "[debian-users:28374] Can't execute remote command on SSH."
on 01/05/14, IWAMURO Motonori <iwa@xxxxxxxxxxxxxxxxx> writes:
> sshã®æŒ™å‹•ãŒãŠã‹ã—ã„ã®ã§ã™ãŒã€åŒæ§˜ã®äº‹ä¾‹ãŒã©ã†ã—ã¦ã‚‚見ã‚ãŸã‚‰ãªã‹ã£ãŸã®
> ã§ãƒ¡ãƒ¼ãƒ«ã—ã¾ã—ãŸã€‚
>
> ç¾è±¡ã¨ã—ã¦ã¯ã€ã€Œssh ホストåã€ã«ã‚ˆã‚‹ãƒªãƒ¢ãƒ¼ãƒˆãƒã‚°ã‚¤ãƒ³ã¯å¯èƒ½ã ãŒã€ã€Œssh
> ホストå コマンドã€ã®ãƒªãƒ¢ãƒ¼ãƒˆã‚³ãƒžãƒ³ãƒ‰å®Ÿè¡ŒãŒã§ããªã„(メッセージも何も出
> ã•ãšã«ãŸã è¿”ã£ã¦ãã‚‹ã ã‘)ã€ã¨ã„ã†ã‚‚ã®ã§ã™ã€‚例ãˆã°ã€
<以下略>
åŽŸå› ã¯ã€éžå¸¸ã«é–“抜ã‘ãªã“ã¨ã«ã€Œ.bashrcãŒã‚¿ã‚³ã ã£ãŸã€ã§ã—ãŸ(^^;
éžã‚¤ãƒ³ã‚¿ãƒ©ã‚¯ãƒ†ã‚£ãƒ–モードã§èµ·å‹•ã•ã‚ŒãŸã¨ãã¯ç«¯æœ«è¨å®šç‰ã‚’è¡Œã‚ãªã„よã†ã«ã—
ã¦ã„ãŸã®ã§ã™ãŒã€tcsh用ã®è¨å®šã‚’bash用ã«æ›¸ãæ›ãˆã‚‹ã¨ãã«ã€
> if [ -z "$PS1" ]; then exit; fi
ã¨æ›¸ã„ã¦ãŠã‚Šã€ãã®çµæžœãã®ã¾ã‚“ã¾bashãŒçµ‚了ã—ã¦ã—ã¾ã£ã¦ã„ãŸã®ã§ã—ãŸã€‚
exitã‚’returnã«å¤‰ãˆãŸã¨ã“ã‚ã€ã†ã¾ãã„ãã¾ã—ãŸã€‚
ãŠã•ã‚ãŒã›ã—ã¾ã—ãŸã€‚
--
岩室元典 [E-Mail: vmi@xxxxxxxxxxxxxxxxxx / iwa@xxxxxxxxxxxxxxxxx]
「努力ã—ãªã„ã§ç”ŸããŸã„ã¨æ€ã‚ãªã„ã‹ã€(「ãµã‚ãµã‚ã®æ³‰ã€é‡Žå°»æŠ±ä»‹/ファミ通文庫)