Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Connect to your BB10 device through ssh
Create session using blackberry-connect, this tool resides inside your SDK dirs, the host dir i.e
$(BBSDK)/host_10_0_9_404/darwin/x86/usr/bin/blackberry-connect
$ blackberry-connect 169.254.0.1 -password <password> -sshPublicKey ~/.ssh/bb10/id_rsa
Then,
create a config file inside ~/.ssh folder
Host bb10
HostName 169.254.0.1
User devuser
IdentityFile ~/.ssh/bb10/id_rsa
$ ssh bb10
DONE!
@rischanlab

This comment has been minimized.

Show comment Hide comment
@rischanlab

rischanlab Feb 19, 2013

can you help me about my problem?

Rischans-MacBook:bin macintosh$ ./blackberry-connect 169.254.0.1 -password rischan -sshPublicKey /Users/macintosh/.ssh/id_rsa.pub
Info: Connecting to target 169.254.0.1:4455
Info: Authenticating with target 169.254.0.1:4455
Info: Encryption parameters verified
Info: Authenticating with target credentials.
Info: Successfully authenticated with target credentials.
Info: Sending ssh key to target 169.254.0.1:4455
Error: Connection refused: Provided ssh key is too small (4096-bit minimum).
Error: Unable to send ssh key to target

can you help me about my problem?

Rischans-MacBook:bin macintosh$ ./blackberry-connect 169.254.0.1 -password rischan -sshPublicKey /Users/macintosh/.ssh/id_rsa.pub
Info: Connecting to target 169.254.0.1:4455
Info: Authenticating with target 169.254.0.1:4455
Info: Encryption parameters verified
Info: Authenticating with target credentials.
Info: Successfully authenticated with target credentials.
Info: Sending ssh key to target 169.254.0.1:4455
Error: Connection refused: Provided ssh key is too small (4096-bit minimum).
Error: Unable to send ssh key to target

@rischanlab

This comment has been minimized.

Show comment Hide comment
@rischanlab

rischanlab Feb 20, 2013

solved => use -b 4096
ex : ssh-keygen -t rsa -C "rischanlab@gmail.com" -b 4096

solved => use -b 4096
ex : ssh-keygen -t rsa -C "rischanlab@gmail.com" -b 4096

@radhoo

This comment has been minimized.

Show comment Hide comment
@radhoo

radhoo Jul 16, 2013

You can generate the keys with putty as well, while keeping the same key length, that is 4096. A detailed guide is available here: http://www.pocketmagic.net/2013/07/ssh-to-the-blackberry-z10-guide/
Just an alternative in case anyone needs it.

radhoo commented Jul 16, 2013

You can generate the keys with putty as well, while keeping the same key length, that is 4096. A detailed guide is available here: http://www.pocketmagic.net/2013/07/ssh-to-the-blackberry-z10-guide/
Just an alternative in case anyone needs it.

@dgburr

This comment has been minimized.

Show comment Hide comment
@dgburr

dgburr Dec 30, 2014

I think that the command should be:

blackberry-connect 169.254.0.1 -password -sshPublicKey ~/.ssh/bb10/id_rsa.pub

And not:

blackberry-connect 169.254.0.1 -password -sshPublicKey ~/.ssh/bb10/id_rsa

Since you need to send the public key to the device, but the local machine should use the private key

dgburr commented Dec 30, 2014

I think that the command should be:

blackberry-connect 169.254.0.1 -password -sshPublicKey ~/.ssh/bb10/id_rsa.pub

And not:

blackberry-connect 169.254.0.1 -password -sshPublicKey ~/.ssh/bb10/id_rsa

Since you need to send the public key to the device, but the local machine should use the private key

@okalou

This comment has been minimized.

Show comment Hide comment
@okalou

okalou Dec 30, 2017

Hi,
may I ask some help about the following issue ?

Using the following command,
./blackberry-connect 169.254.0.1 -password mypassword -sshPublicKey ~/.ssh/id_rsa.pub

I always get ;
Info: Connecting to target 169.254.0.1:4455
Error: Connection failed: connect timed out

I've setup developper mode on my target device, nmap on host confirms that 169.254.0.1 is up, 1000 ports filtered ..
telnet 169.254.0.1 4455 obviously times out as well...

Any help would be greatly appreciated.

okalou commented Dec 30, 2017

Hi,
may I ask some help about the following issue ?

Using the following command,
./blackberry-connect 169.254.0.1 -password mypassword -sshPublicKey ~/.ssh/id_rsa.pub

I always get ;
Info: Connecting to target 169.254.0.1:4455
Error: Connection failed: connect timed out

I've setup developper mode on my target device, nmap on host confirms that 169.254.0.1 is up, 1000 ports filtered ..
telnet 169.254.0.1 4455 obviously times out as well...

Any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment