I wanted to enable SCP and SSH using DropBear II ... for some reason DropBear Server II doesn't install scp & ssh binaries, you can get them from github and symlink it into system. Here's what I did...
DropBear archive (1M): https://www.dropbox.com/s/h2guipuvdltiden/dropbearii.zip
Feel free to mirror that if you want.
These directions allow you to ssh into the system as root, be very careful. I recommend not leaving the service running if you are not using it.
I take no responsibility if you brick your unit while mucking around as root.
Notes/testing
Why would I want to do this? I didn't really like the Wireless ADB disappearing after the OTA upgrade, this may be less annoying if the next OTA doesn't nuke it.
DropBear archive (1M): https://www.dropbox.com/s/h2guipuvdltiden/dropbearii.zip
Feel free to mirror that if you want.
These directions allow you to ssh into the system as root, be very careful. I recommend not leaving the service running if you are not using it.
I take no responsibility if you brick your unit while mucking around as root.
- Back Up
- Download dropbearii.zip and unzip on your local file system.
- From your local filesystem install the APK and push scp & ssh to tmp.
Code:adb install DropBearServer2.1.apk adb push scp /data/local/tmp/scp adb push ssh /data/local/tmp/ssh - From the OUYA GUI install the DropBearServerII service... Select Make -> Software -> DropBearServer II -> Install
- Shell into your OUYA and make /system writable.
Code:adb shell su mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP - Move scp & ssh into DropBear II directory
Code:mv /data/local/tmp/scp /data/data/me.shkschneider.dropbearserver2/app_data/ mv /data/local/tmp/ssh /data/data/me.shkschneider.dropbearserver2/app_data/ - Change the permissions
Code:chmod 6555 /data/data/me.shkschneider.dropbearserver2/app_data/scp chmod 6555 /data/data/me.shkschneider.dropbearserver2/app_data/ssh - Create the symlinks
Code:cd /system/bin/ ln -s /data/data/me.shkschneider.dropbearserver2/app_data/scp ./scp ln -s /data/data/me.shkschneider.dropbearserver2/app_data/ssh ./ssh - Change /system back to read-only (optional) and exit.
Code:mount -o ro,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP exit exit - Reboot the OUYA (optional)
Code:adb reboot
Notes/testing
- Windows users can use Putty to ssh & scp get them here.
- To ssh into the system:
Code:ssh [email protected]_ADDRESS - To scp a file to the sdcard:
Code:scp ./some_file [email protected]_ADDRESS:/sdcard/ - To get to settings push the U circle button one time.
- If you turn on "Start on boot" in the settings menu and reboot, the service will be turned off. Though it will be left on in the standard standby mode.
- I recommend using pubkey rather than password. Basically generate a public key and push it into /sdcard/ then install it from the DropBear II app.
Unix Hosts can do:
Windows using PuttySSH follow these directions, I haven't tested them though.Code:ssh-keygen -t rsa - If you don't want to be bothered with pubkey, please change the default password it is set to 42.
- If you already know about pubkey, you can cat them into: /data/data/me.shkschneider.dropbearserver2/app_data/authorized_keys
- Unchecking "Allow Password" doesn't work properly.
Why would I want to do this? I didn't really like the Wireless ADB disappearing after the OTA upgrade, this may be less annoying if the next OTA doesn't nuke it.
Last edited: