Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Android™ Runtime Development

Reply
New Contributor
chrisseaton
Posts: 8
Registered: ‎12-28-2012
My Carrier: n/a

blackberry-connect thinks my key isn't 4096 bits

[ Edited ]

I've generated an SSH key specifically for blackberry-connect.

 

$ ssh-keygen -t rsa -b 4096 -C "test@example.com"

...

Enter file in which to save the key (/Users/chrisseaton/.ssh/id_rsa): /Users/chrisseaton/.ssh/test@example.com

...

 

When I try to use this with blackberry-connect I'm told it's not long enough.

 

$ blackberry-connect 192.168.1.74 -password whenthegatesfell -sshPublicKey ~/.ssh/test\@example.com.pub 

Info: Connecting to target 192.168.1.74:4455
Info: Authenticating with target 192.168.1.74:4455
Info: Encryption parameters verified
Info: Authenticating with target credentials.
Info: Successfully authenticated with target credentials.
Info: Sending ssh key to target 192.168.1.74:4455
Error: Connection refused: Provided ssh key is too small (4096-bit minimum).
Error: Unable to send ssh key to target

 

Version 1.2.0, on OS X.

 

I'm using blackberry-connect because I want to use adb and logcat to debug a problem.

 

What am I doing wrong?

Please use plain text.
Contributor
beemaster
Posts: 35
Registered: ‎06-29-2011
My Carrier: Ukraine GSM

Re: blackberry-connect thinks my key isn't 4096 bits

Same problem, looking for an answer...
Please use plain text.
New Contributor
rischan
Posts: 4
Registered: ‎11-13-2012
My Carrier: 3

Re: blackberry-connect thinks my key isn't 4096 bits

use parameter -b 4096 

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

 

Please use plain text.
New Contributor
chrisseaton
Posts: 8
Registered: ‎12-28-2012
My Carrier: n/a

Re: blackberry-connect thinks my key isn't 4096 bits

Not sure what you mean - in my post I said that I used that parameter when generating the key. What are you suggesting I do differently?

Please use plain text.
New Contributor
rischan
Posts: 4
Registered: ‎11-13-2012
My Carrier: 3

Re: blackberry-connect thinks my key isn't 4096 bits

i got the same problem with you, but this solution worked. https://gist.github.com/diorahman/4334311

my device is BB10 dev alpha 

 

maybe you can try again, backup your .ssh folder and generate new key :-D

 

Please use plain text.