Welcome to the CrackBerry Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Page 1 of 2 12 LastLast
Results 1 to 25 of 47
  1. xsacha's Avatar
    CrackBerry Genius

    Posts
    3,210 Posts
    Thread AuthorThread Author   #1  

    Default Guide: SSH to your Playbook

    Update: This guide has been made redundant by the Playbook Connect app that is capable of running on all OS including phones. See here.


    Archive:
    All the required tools/files can be downloaded here.
    Just replace IP and PASS in id.bat. Then run "connect.bat" and leave that window open to enable SSH. Then run "ssh.bat" to ssh to the Playbook.


    If you want to see how the files were made, read the guide below:

    This guide is for Windows but it's perhaps easier on Linux/Mac
    ----------
    What you need:
    * Putty and Puttygen from the official site.
    * A 'working directory' where you put all these files. I chose: C:\Users\X\Desktop\Playbook_Tools\
    * A file with the details of your Playbook called id.bat containing:
    Code:
    SET IP=10.1.1.13
    SET PASS=playbook
    Set up SSH keys:
    1. Run PuttyGen, change 1024 to 4096 and click 'Generate'.
    2. Copy the random-looking text inside the large text box up to and including the last "=". Paste this in to a text file and name it rsa.pub. Store it in the working directory.
    3. Save the private key to your working directory as rsa.ppk.
    4. Create a new file, ssh.bat, in your working directory containing:
    Code:
    CALL id
    START putty.exe -i rsa.ppk -ssh devuser@%IP%
    Set up Playbook:
    1. Enable Development Mode
    2. Create a new file, connect.bat, in your working directory containing:
    Code:
    CALL id
    "%PROGRAMFILES%\Research In Motion\blackberry-tablet-sdk-1.1.0\bin\blackberry-connect" %IP% -password %PASS% -sshPublicKey rsa.pub
    Now run "connect.bat" to make the Playbook listen. Then run "ssh.bat" to open up a ssh connection to the Playbook.
    ----------

    From the SSH it is possible to run native apps (even ones you compile yourself).
    Last edited by xsacha; 08-30-2011 at 06:06 AM.
    Thanked by 2:
    chiefbroski (08-19-2011),  rsxsniper (08-19-2011) 
  2. xsacha's Avatar
    CrackBerry Genius

    Posts
    3,210 Posts
    Thread AuthorThread Author   #2  

    Default

    Interesting find:

    winchester_phy_ctrl
    Usage: winchester_phy_ctrl [options]

    -o : Force the USB PHY on, and exit
    -f : Force the USB PHY off, and exit
    -p : daemonize, and let powerman decide ( default )
    -U uid:gid : override uid and gid
    -v : add verbosity
    -h : usage


    Description: turns on/off the PHY and OTG Controller clock


    USB OTG? Hello!
    Last edited by xsacha; 08-19-2011 at 12:48 PM.
  3. rsxsniper's Avatar
    CrackBerry Abuser

    Posts
    266 Posts
    #3  

    Default

    im sorry if i sound stupid but what is SSH? and how does this benefit me? thanks
  4. peter9477's Avatar
    CrackBerry Genius of Geniuses

    Posts
    5,216 Posts
    Global Posts
    5,218 Global Posts
    #4  

    Default

    @xsacha, yes, see is usb host mode support coming? (the part about EHCI)
  5. 1stStrike's Avatar
    CrackBerry Addict

    Posts
    524 Posts
    #5  

    Default

    Quote Originally Posted by rsxsniper View Post
    im sorry if i sound stupid but what is SSH? and how does this benefit me? thanks
    If you don't know what SSH is, then you probably shouldn't worry about it.

    See Secure Shell - Wikipedia, the free encyclopedia for info about it.
    PIN: 2624A168
    Professional Geek
  6. HaTaX's Avatar
    CrackBerry Master

    Posts
    1,400 Posts
    #6  

    Default

    When you do some digging around in there you'll find that root login via ssh is enabled currently. Hmm, so how do you get the needed certificate to login as root? Where there's a will, there's a way...
  7. tieum's Avatar
    CrackBerry Newbie

    Posts
    7 Posts
    #7  

    Default

    thanks for your guide xsacha, just one thing, in the ssh.bat the private key file option is missing:

    "start putty.exe -i rsa.ppk -ssh devuser@my.ip.add.ress"
  8. z_scorpio_z's Avatar
    CrackBerry Abuser

    Posts
    406 Posts
    #8  

    Default

    Quote Originally Posted by tieum View Post
    thanks for your guide xsacha, just one thing, in the ssh.bat the private key file option is missing:

    "start putty.exe -i rsa.ppk -ssh devuser@my.ip.add.ress"
    If you use peagent you don't need to add private key to putty command.

    Quote Originally Posted by xsacha View Post
    ...
    4. Save the private key to your working directory. Run Peageant and add the key you just created.
  9. tieum's Avatar
    CrackBerry Newbie

    Posts
    7 Posts
    #9  

    Default

    that's what peageant was for , thanks for pointing that out

    since then managed to connect natively from mac osx, which is way more convenient than launching a windows VM...
  10. xsacha's Avatar
    CrackBerry Genius

    Posts
    3,210 Posts
    Thread AuthorThread Author   #10  

    Default

    It's much easier to do this in Linux and Mac OSX and those OS don't really need a guide .

    I made guide much simpler to follow.
    I also made the packed files much easier to use (just edit id.bat), so no one really needs to follow the guide.
    Last edited by xsacha; 08-21-2011 at 06:48 AM.
  11. A7omic's Avatar
    CrackBerry Abuser

    Posts
    376 Posts
    #11  

    Default

    Quote Originally Posted by HaTaX View Post
    When you do some digging around in there you'll find that root login via ssh is enabled currently. Hmm, so how do you get the needed certificate to login as root? Where there's a will, there's a way...
    Umm..is that a I know how but I am not sharing wink?

    or

    Is that a damn I really want to figure that out wink?
    Last edited by A7omic; 08-21-2011 at 07:34 AM.
  12. melander's Avatar
    CrackBerry Abuser

    Posts
    280 Posts
    #12  

    Default

    I don't see how anything but Windows can be used for the initial piece since it is required to run "blackberry-connect" to enable ssh on the Playbook. After enabling dev mode, I portscanned the Playbook and it just has the standard ports open(139,443,445) plus 4455
  13. dkonigs's Avatar
    CrackBerry Abuser

    Posts
    283 Posts
    #13  

    Default

    Quote Originally Posted by melander View Post
    I don't see how anything but Windows can be used for the initial piece since it is required to run "blackberry-connect" to enable ssh on the Playbook. After enabling dev mode, I portscanned the Playbook and it just has the standard ports open(139,443,445) plus 4455
    "blackberry-connect" is part of the Tablet SDK, and RIM provides MacOS and Linux versions of that as well. (and its just a script that wraps a Java app anyways)
  14. TomCanuck's Avatar
    CrackBerry Addict

    Posts
    927 Posts
    Global Posts
    929 Global Posts
    #14  

    Default

    Quote Originally Posted by A7omic View Post
    Umm..is that a I know how but I am not sharing wink?

    or

    Is that a damn I really want to figure that out wink?

    I think that's a "If it's at all possible, I will know soon" wink

    Sent from my BlackBerry 9780 using Tapatalk
    BlackBerry pulls the plug on themes: https://twitter.com/#!/BlackBerryDev...73487468920834 :< need to rally the troops and convince RIM we want themes on BB10!
  15. tieum's Avatar
    CrackBerry Newbie

    Posts
    7 Posts
    #15  

    Default

    once you are logged in ssh, if you want a real text editor, i've recompiled vim, just scp & unzip it to /accounts/devuser and add "/accounts/devuser" to your $PATH

    http://tieum.com/vim.zip
    Thanked by:
    sanaking (05-26-2013) 
  16. xsacha's Avatar
    CrackBerry Genius

    Posts
    3,210 Posts
    Thread AuthorThread Author   #16  

    Default

    @tieum:
    Try 'elvis'
  17. xsacha's Avatar
    CrackBerry Genius

    Posts
    3,210 Posts
    Thread AuthorThread Author   #17  

    Default

    This has to be useful for someone

    dtmauth
    val::Wt99KQo2eVGcK48hoG8lHbI2QkPAhjPJ52dW6330B49r6 2ER0MF2QcFwQA3yFpHZMUq93nX75Sxm5B3
  18. tieum's Avatar
    CrackBerry Newbie

    Posts
    7 Posts
    #18  

    Default

    Quote Originally Posted by xsacha View Post
    @tieum:
    Try 'elvis'
    ...well at least now I know how to cross compile stuff for the playbook


    Quote Originally Posted by xsacha View Post
    This has to be useful for someone

    dtmauth
    val::Wt99KQo2eVGcK48hoG8lHbI2QkPAhjPJ52dW6330B49r6 2ER0MF2QcFwQA3yFpHZMUq93nX75Sxm5B3
    dtm like Desktop Manager? nice find
  19. TomCanuck's Avatar
    CrackBerry Addict

    Posts
    927 Posts
    Global Posts
    929 Global Posts
    #19  

    Default

    Quote Originally Posted by tieum View Post
    ...well at least now I know how to cross compile stuff for the playbook

    Have you tried, successfully or failfully to compile anything else?
    Also, how'd you do it? Sharing is caring <3

    Sent from my BlackBerry 9780 using Tapatalk
    BlackBerry pulls the plug on themes: https://twitter.com/#!/BlackBerryDev...73487468920834 :< need to rally the troops and convince RIM we want themes on BB10!
  20. FourOhFour's Avatar
    CrackBerry Abuser

    Posts
    160 Posts
    Global Posts
    162 Global Posts
    #20  

    Default

    Just compile for ARM LE V7 target in momentics.
  21. TomCanuck's Avatar
    CrackBerry Addict

    Posts
    927 Posts
    Global Posts
    929 Global Posts
    #21  

    Default

    Quote Originally Posted by FourOhFour View Post
    Just compile for ARM LE V7 target in momentics.

    Sweet man. Thanks. ;D

    Sent from my BlackBerry 9780 using Tapatalk
    BlackBerry pulls the plug on themes: https://twitter.com/#!/BlackBerryDev...73487468920834 :< need to rally the troops and convince RIM we want themes on BB10!
  22. xsacha's Avatar
    CrackBerry Genius

    Posts
    3,210 Posts
    Thread AuthorThread Author   #22  

    Default

    @Juggalo20, see here: http://forums.crackberry.com/blackbe...aybook-640579/
    Momentics even lets you debug the app directly on the Playbook device.
  23. FourOhFour's Avatar
    CrackBerry Abuser

    Posts
    160 Posts
    Global Posts
    162 Global Posts
    #23  

    Default

    momentics should also come packaged with a ton of binaries you can run.. shouldn't be any need to recompile things like vi.
  24. TomCanuck's Avatar
    CrackBerry Addict

    Posts
    927 Posts
    Global Posts
    929 Global Posts
    #24  

    Default

    You guys both rock. Gunna take a look as soon as I get home thanks to both of you

    Sent from my BlackBerry 9780 using Tapatalk
    BlackBerry pulls the plug on themes: https://twitter.com/#!/BlackBerryDev...73487468920834 :< need to rally the troops and convince RIM we want themes on BB10!
  25. 2disbetter's Avatar
    CrackBerry Newbie

    Posts
    2 Posts
    #25  

    Default

    This all fantastic and what not, but does anyone have any idea when the Playbook will be getting it's own SSH client? It's extremely frustrating knowing that their is a ssh core already on the playbook and the user can't use it.

    I know it's hard to get the ball rolling as the native SDK for the playbook has not been released yet, but does anyone with connections know if RIM is wokring this issue?

    2d
Page 1 of 2 12 LastLast

Posting Permissions