[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:28374] Can't execute remote command on SSH.



ã¯ã˜ã‚ã¾ã—ã¦ã€å²©å®¤ã¨ç”³ã—ã¾ã™ã€‚

Debian2.2r3(UNIX USER付録ã®DVD-ROMã§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«å¾Œã€apt-getã§ã‚¢ãƒƒãƒ—ã‚°
レード)ã‚’ã€ThinkPad535(ノートPC)ã§ä½¿ã£ã¦ã„ã¾ã™ã€‚

sshã®æŒ™å‹•ãŒãŠã‹ã—ã„ã®ã§ã™ãŒã€åŒæ§˜ã®äº‹ä¾‹ãŒã©ã†ã—ã¦ã‚‚見ã‚ãŸã‚‰ãªã‹ã£ãŸã®
ã§ãƒ¡ãƒ¼ãƒ«ã—ã¾ã—ãŸã€‚

ç¾è±¡ã¨ã—ã¦ã¯ã€ã€Œssh ホストåã€ã«ã‚ˆã‚‹ãƒªãƒ¢ãƒ¼ãƒˆãƒ­ã‚°ã‚¤ãƒ³ã¯å¯èƒ½ã ãŒã€ã€Œssh 
ホストå コマンドã€ã®ãƒªãƒ¢ãƒ¼ãƒˆã‚³ãƒžãƒ³ãƒ‰å®Ÿè¡ŒãŒã§ããªã„(メッセージも何も出
ã•ãšã«ãŸã è¿”ã£ã¦ãã‚‹ã ã‘)ã€ã¨ã„ã†ã‚‚ã®ã§ã™ã€‚例ãˆã°ã€

    ssh localhost

ã§ã¯ãƒ­ã‚°ã‚¤ãƒ³ã§ãã‚‹ã®ã«ã€

    ssh localhost echo test

ã¯ä½•ã‚‚処ç†ã›ãšã«è¿”ã£ã¦ãã¾ã™ã€‚コマンドã«çµ¶å¯¾ãƒ‘スを指定ã—ãŸã‚Šã€å†…部ã§ãƒ•ã‚¡
イルをtouchã™ã‚‹ã ã‘ã®ã‚·ã‚§ãƒ«ã‚¹ã‚¯ãƒªãƒ—トを指定ã—ãŸã‚Šã—ã¦ã‚‚ã ã‚ã§ã™ã—ã€å­˜
在ã—ãªã„コマンドを指定ã—ã¦ã‚‚エラーã™ã‚‰è¿”ã£ã¦ãã¾ã›ã‚“。ã©ã†ã‚‚コマンドãŒ
èµ·å‹•ã•ã‚Œã¦ã„ãªã„よã†ã«è¦‹ãˆã¾ã™ã€‚

-vオプション付加時ã®å‡ºåŠ›(èªè¨¼éƒ¨åˆ†ã¯çœç•¥):

------------------------------------------------------------------------------
debug1: Sending command: echo test
debug1: Entering interactive session.
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0
------------------------------------------------------------------------------

ã‚„ã€sshdã®ãƒ­ã‚°(åŒæ§˜ã«èªè¨¼éƒ¨åˆ†ã¯çœç•¥):

------------------------------------------------------------------------------
May 14 21:51:55 lydia sshd[485]: debug: Executing command 'echo test'
May 14 21:51:55 lydia sshd[485]: debug: PAM establishing creds
May 14 21:51:55 lydia sshd[488]: debug: PAM environment: LANG=C
May 14 21:51:55 lydia sshd[485]: debug: Entering interactive session.
May 14 21:51:56 lydia sshd[485]: debug: Received SIGCHLD.
May 14 21:51:56 lydia sshd[485]: debug: End of interactive session; stdin 0, stdout (read 0, sent 0), stderr 0 bytes.
------------------------------------------------------------------------------

を見ã¦ã‚‚ã€ç‰¹ã«å•é¡ŒãŒã‚るよã†ã«ã¯è¦‹ãˆã¾ã›ã‚“。

何ã‹ã“ã®ã‚ˆã†ãªçŠ¶æ³ã«é–¢ã—ã¦ã”存知ã®æ–¹ã¯ãŠã‚‰ã‚Œãªã„ã§ã—ょã†ã‹?
-- 
岩室元典 [E-Mail: vmi@xxxxxxxxxxxxxxxxxx / iwa@xxxxxxxxxxxxxxxxx]
「努力ã—ãªã„ã§ç”ŸããŸã„ã¨æ€ã‚ãªã„ã‹ã€(「ãµã‚ãµã‚ã®æ³‰ã€é‡Žå°»æŠ±ä»‹/ファミ通文庫)