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.

inside custom component

Native Development

Reply
Contributor
andreagrandi
Posts: 18
Registered: ‎02-14-2012
My Device: PlayBook Simulator
My Carrier: None

Cannot connect to the Playbook Simulator using ssh

Hello,

 

I've followed the instructions here http://wiki.qt-project.org/QNX

but I cannot connect with ssh.

 

This is what I get:



andrea@centurion:~/.ssh$ blackberry-connect 192.168.72.128 -sshPublicKey id_rsa.pub
Info: Connecting to target 192.168.72.128:4455
Info: Authenticating with target 192.168.72.128:4455
Info: Encryption parameters verified
Info: Sending ssh key to target 192.168.72.128:4455
Info: ssh key successfully transferred.
Error: Connection refused: Unexpected command


andrea@centurion:~/.ssh$ ssh -i id_rsa devuser@192.168.72.128
ssh: connect to host 192.168.72.128 port 22: Connection refused
andrea@centurion:~/.ssh$

 

how can I fix it? Thanks.

Please use plain text.
BlackBerry Technical Advisor (Retired)
davidcummings
Posts: 20
Registered: ‎10-27-2010
My Device: Bold 9800

Re: Cannot connect to the Playbook Simulator using ssh

Make sure that your key is of type RSA and that it is at least 4096-bits.

Please use plain text.
Contributor
andreagrandi
Posts: 18
Registered: ‎02-14-2012
My Device: PlayBook Simulator
My Carrier: None

Re: Cannot connect to the Playbook Simulator using ssh

I already have ssh keys and I use them for many things (GitHub, Gitorious, Launchpad Ubuntu ecc...) I just would not want to overwrite them and loose them. How can I generate new keys without loosing my old one? Thanks.

p.s: I'm using Ubuntu Linux

Please use plain text.
Contributor
andreagrandi
Posts: 18
Registered: ‎02-14-2012
My Device: PlayBook Simulator
My Carrier: None

Re: Cannot connect to the Playbook Simulator using ssh

I've just verified my actual key. It's RSA 2048 bit so I suppose is not usable for Playbook, right?

Please use plain text.
BlackBerry Technical Advisor (Retired)
davidcummings
Posts: 20
Registered: ‎10-27-2010
My Device: Bold 9800

Re: Cannot connect to the Playbook Simulator using ssh

Correct. It needs to be at least 4096-bits.

 

You can use ssh-keygen to generate a new key and provide a location for it so that it doesn't override your existing key.

 

e.g.

ssh-keygen -b 4096 -t RSA -f <creation_path>

 

For more info, ssh-keygen has a detailed man page.

Please use plain text.