Reply
Thread Tools
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#1
Hi, all!

I have problem with SBRSH.
On my Host PC file .sbrsh have this lines:

FREMANTLE_ARMEL 192.168.2.15:1202
ssh grinch@192.168.2.14:/scratchbox/users/grinch/targets/FREMANTLE_ARMEL/ / rw,nonempty,allow_other,port=22
ssh grinch@192.168.2.14:/scratchbox/users/grinch/home/grinch/ /home/grinch rw,nonempty,allow_other,port=22
bind /tmp /tmp
bind /dev /dev
bind /dev/pts /dev/pts
bind /proc /proc
bind /sys /sys
bind /var /var

On tablet ip 192.168.2.14 is allowed in /etc/sbrshd.conf

ssh is configured to passwordless mode.


Next I execute on Host PC command (not in scratchbox) 'sbrsh /bin/sh'.
But I find myself not in mounted scratchbox filesystem, but in common tablet filesystem.

Log /var/log/sbrshd.log:

DAEMON New connection
DAEMON Client IP address is 192.168.2.14
DAEMON Sending VERSION packet
DAEMON Reading client's VERSION packet
DAEMON Reading USER packet
DAEMON Searching for host 192.168.2.14 in /etc/sbrshd.conf
DAEMON Found matching line: 192.168.2.14
DAEMON Sending AUTH packet
DAEMON Receiving SANDBOX packet
DAEMON Receiving TARGET packet
DAEMON Receiving MOUNTS packet
DAEMON Receiving ARGS packet
DAEMON Receiving ENVIRON packet
DAEMON Receiving IDS packet
DAEMON Receiving UMASK packet
DAEMON Receiving WINSIZE packet
DAEMON Received COMMAND packet
DAEMON Client sandbox disabled(0), enabled(1), server(2): 2
DAEMON Perfoming server sandbox decision: 1
HANDLER Creating command process in a pty
COMMAND Changing gid to 1000
COMMAND Setting 14 supplementary gids
COMMAND Changing uid to 1000
COMMAND Executing command: /bin/sh
DAEMON Checking for expired mounts
AEMON Waiting for connection
HANDLER Managing process 3601
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
What did you expect? Why do you see the result as an error?

And, could you please clarify which device has which IP address.
 
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#3
I expected that on device in '/var/sbrshd/grinch@192.168.2.14/FREMANTLE_ARMEL' directory were filesystem of scratchbox.

Actually I resolve that problem by enabling of fuse in /etc/default/sbrsh:
# Specifies FUSE fusermount and sshfs binaries.
SSHFS_BIN=/usr/bin/sshfs
FUSERMOUNT_BIN=/usr/bin/fusermount
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:20.