Re: Another variant of "ssh" working interactively, but "ssh cmd" and "scp" failing




hello, world\n
I've read the SSH and OpenSSH FAQ (motd/.profile issue), googled left
and right and still could not find a solution to the problem. I've got
an embedded box named FOO running OpenSSH_3.7.1p1 on Linux 2.4 on
PowerPC, the shell is a busybox, but using bash does not change
anything. No PAM. This is the situation:

ssh root@FOO -- works
ssh root@FOO ls -- fails, no output, no matter what command is given
scp file root@FOO: -- fails, "lost connection"

Are you sure you effectively tried it with bash? This would be the most
logical explanation, since sshd uses "$SHELL -c ..." to execute remote
commands, and I find this:

syrinx:~% busybox -c /bin/ls
c: applet not found

--
Richard Silverman
res@xxxxxxxx


.



Relevant Pages

  • Re: using ssh to run remote commands? [ssh -T, scp/ssh flags]
    ... I use SSH to forward connections between an intranet server at home and my ... To do this, the user on the remote machine need not have a shell, either ... start a shell on the remote host, ... you can have ssh run a command instead of an interactive shell by ...
    (FreeBSD-Security)
  • (Unix) Login with ssh ... TERM not set.
    ... The account on the target machine I ssh into has sh as a default shell. ... I prefer bash, but don't want to manually invoke 'bash' every time I log in, ...
    (comp.security.ssh)
  • Re: Really need help on this one
    ... Is there a way to read the output of a particular command into ... Heres a better example using ssh. ... set timeout $timeout ... exec kill -9 $pid ...
    (comp.lang.tcl)
  • Re: using "at" and ssh
    ... > test script called foo that looks like this: ... It is immediately stopped by bash. ... It runs fine until it gets to the first command ... > that uses ssh. ...
    (comp.security.ssh)
  • RE: midnight commander and ssh sftp
    ... midnight commander and ssh sftp ... which is displayed at the bottom of the MC panel. ... "Left file command options right" at the top of the MC ... MC SSH session with the remote host by hitting F10 key. ...
    (freebsd-questions)