login about faq

Is there an sshd for the linaro panda android distro? I tried using the cyanogenmod one, but it is dynamically linked and the 12.01 android distro doesn't appear to have the same libraries as it errors out. Do I have to statically compile against uClibc? I've found a "blueprint" regarding openssh, but it is in a "new" state. I guess I am wondering if this work has been done, or should I forge ahead?

https://blueprints.launchpad.net/linaro-android/+spec/linaro-android-integrate-ssh-server

asked 22 Feb, 10:56

tjbaker's gravatar image

tjbaker
1613
accept rate: 0%

edited 04 Apr, 05:44

Michael%20Opdenacker's gravatar image

Michael Opde... ♦♦
440139


Actually, I got cyanogenmod dropbear binaries to work. I had bad copies in the path that "which" pointed out.

$ file dropbear dropbear: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped

link

answered 22 Feb, 12:25

tjbaker's gravatar image

tjbaker
1613
accept rate: 0%

Hi,

This sounds like a good idea to use Dropbear statically linked with uClibc.

Let's hope that the other Linaro Android folks will have other suggestions and information to share.

Cheers,

Michael.

link

answered 22 Feb, 11:06

Michael%20Opdenacker's gravatar image

Michael Opde... ♦♦
440139
accept rate: 5%

edited 22 Feb, 11:06

Good to know! Thanks for confirming that this can work.

Cheers,

Michael.

link

answered 23 Feb, 10:59

Michael%20Opdenacker's gravatar image

Michael Opde... ♦♦
440139
accept rate: 5%

Follow on question, I am able to run dropbear in the foreground or background just fine, but am having trouble starting it form init.rc. I've added it as a on-boot service via:

# start Dropbear (ssh server) service on boot
service sshd /system/xbin/dropbear
   user  root
   group root
   oneshot

I then recompiled uInitrd via the instructions here: http://ask.linaro.org/questions/364/initrc-in-sd-card

Trouble is that I don't see the service starting nor any errors to follow up on. I know that my new uInitrd is being used as I change the image name and see it printed out correctly. Does anyone have any troubleshooting advice for adding services?

Note that the above service worked for in GB based pandroid images. I've tried it with and without specifying the user and group. As I mentioned the permissions appear correct as it runs ok when I start it via serial console or adb shell over tcp.

Any ideas?

link

answered 02 Mar, 10:17

tjbaker's gravatar image

tjbaker
1613
accept rate: 0%

edited 02 Mar, 10:18

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×132
×1
×1

Asked: 22 Feb, 10:56

Seen: 246 times

Last updated: 04 Apr, 05:44