LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2015, 03:03 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Rep: Reputation: 8
ssh login problem to Dropbear


I want to login form my Linux based PC to my TV set over ssh without password, only using rsa certificates procedure. /mnt/etc/init.d/02_01_sshd.init starts dropbear in my tV. I changed line in this file to:

Code:
dropbear -s
to
dropbear -sg

to allow root login without password. Than I placed generated by ssh-keygen (on Linux PC) public key in to /mtd_rwarea/authorized_keys (permissions 600). This is default location for this file in TV.
The same key I use to connect to other Linux servers and it works without problems. But when I try to connect to my TV using syntax below, error about public key problem is rapport.

Code:
[maciek@piotr Pobrane]$ ssh -x -i ~/.ssh/id_rsa root@tv-w
Permission denied (publickey).

When I remove /mtd_rwarea/authorized_keys file, ssh login is possible but with password.

What I am doing wrong? Maybe Dropbear does not accept RSA keys generated by ssh-keygen on Linux PC?
 
Old 04-18-2015, 05:09 AM   #2
bizarrefish
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Rep: Reputation: Disabled
Hi there,

Dropbear uses a different key format to OpenSSH.
See: http://unix.stackexchange.com/questi...eys-compatible for how to convert.


Lee.
 
Old 04-18-2015, 07:18 AM   #3
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by bizarrefish View Post
Hi there,

Dropbear uses a different key format to OpenSSH.
See: http://unix.stackexchange.com/questi...eys-compatible for how to convert.


Lee.
Hmmm. I dont understand. "host_key" is a private key (located in ~/.ssh/id_rsa) that needs to be converted based on id_rsa (generated by ssh-keygen) to private Dropbear key?
As I understand on dropbear server site I have still the same authorised_keys file
I do so - without positive results.

Last edited by mackowiakp; 04-18-2015 at 07:31 AM.
 
Old 04-18-2015, 09:42 AM   #4
bizarrefish
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Rep: Reputation: Disabled
Ah, sorry. I just did some reading and quite right you are, the public key formats are supposed to be the same for both Dropbear and OpenSSH.

I'm sure I've had this issue before, but it was long ago and I can't remember much - sorry for that.
Check the permissions of your authorized_keys file and whatever directory it's in - sshd is picky about it. (here: http://stackoverflow.com/a/6377073).

Kind Regards,
Lee.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading files by Dropbear SSH seprob Linux - Server 1 12-08-2014 08:27 AM
Limit Login Dropbear CentOS dwaterboker Linux - Newbie 1 03-14-2014 12:52 PM
[SOLVED] SSH login problem for additional users after password-less login setup uncle-c Linux - Newbie 3 02-10-2010 12:51 PM
Busybox and dropbear related problem linuxwang Linux - Newbie 3 02-02-2010 11:20 PM
dropbear ssh with floppyfw rocordial Linux - Networking 1 07-04-2004 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration