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
New Developer
vikaspushkar
Posts: 24
Registered: ‎01-02-2014
My Device: BB Z10

Cannot ssh to device as root user

 
Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Cannot ssh to device as root user

Hmm, most secure OS there is for a mobile device, I wonder why they don't allow root access?

 

LOL. :smileyvery-happy:


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
vikaspushkar
Posts: 24
Registered: ‎01-02-2014
My Device: BB Z10

Re: Cannot ssh to device as root user

:smileyvery-happy:...... because when i am trying to ssh login even as a devuser through my terminal it say
ssh devuser@169.254.0.1
Permission denied (publickey,keyboard-interactive).


thats why i was wondering do the sshd in bbz10 uses certificates for authentication??
Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Cannot ssh to device as root user

Of course it does, make sure you have developmnt mode enabled and a valid certificate set up.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Cannot ssh to device as root user

you have to use a key.
i found this guide after a quick search:
http://www.pocketmagic.net/2013/07/ssh-to-the-blackberry-z10-guide/#.Ut-2ErQwfRY
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Cannot ssh to device as root user

Just out of interest why do you want to do this?

 

You'll find that most directories are read-only and although you can run the unix (QNX) commands you could do that from an app anyway.

 

If you just want to explore you can use Momentics Target File System Navigator.

 

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Cannot ssh to device as root user

i used ssh to copy the image files from the icon directory, for example.
momentics crashed after copying about 1000 files.

it is also handy to execute qnx commands for that no API is available.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Cannot ssh to device as root user

[ Edited ]

Simon I'm sure you know this but others may not, there is a system call...

 

http://developer.blackberry.com/native/reference/core/com.qnx.doc.neutrino.lib_ref/topic/s/system.ht...

 

Granted that when experimenting or looking for info on commands it's easier to just ssh in and fool around.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Cannot ssh to device as root user

yes, i have used that. to find out how the command works, which parameters are supported and if the command is allowed by the security settings of the devuser account ssh is very handy.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
vikaspushkar
Posts: 24
Registered: ‎01-02-2014
My Device: BB Z10

Re: Cannot ssh to device as root user

Simon, could u please share how u did the file transfer(bfore that the ssh through your terminal.

 

thanks