Closed maweki closed 6 years ago
I have 0 ideas left for this atm :/ I need a router that dont work to test on.
Okay, I think I kinda got it.
$ ssh admin@192.168.1.3 env
admin@192.168.1.3's password:
SSH_CLIENT=192.168.1.11 43456 22
USER=admin
HOME=/root
LOGNAME=admin
PATH=/usr/bin:/bin
SHELL=/bin/sh
PWD=/tmp/home/root
SSH_CONNECTION=192.168.1.11 43456 192.168.1.3 22
logging in:
$ ssh admin@192.168.1.3
admin@192.168.1.3's password:
admin@(none):/tmp/home/root# env
SSH_CLIENT=192.168.1.11 43496 22
USER=admin
HOME=/root
SSH_TTY=/dev/pts/0
PS1=\u@\h:\w\$
LOGNAME=admin
TERM=xterm-256color
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/admin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin
SHELL=/bin/sh
PWD=/tmp/home/root
SSH_CONNECTION=192.168.1.11 43496 192.168.1.3 22
TMOUT=1200
If you don't login and only execute the commands, you have the wrong $PATH
. The commands need to be fully qualified.
$ ssh admin@192.168.1.3 /sbin/arp -n
admin@192.168.1.3's password:
? (192.168.1.1) at 84:16:xx:xx:xx:xx [ether] on br0
I just started writing stderr and that would have told me this! Thank you 110... ill sort this now.
stupid me :D that wont work
It will be in next bump!
using the testscript from #1 with python3 I get no results. The commands fail.
Output for the single commands:
The test script somehow doesn't work while the commands do.