OpenWrt Forum Archive

Topic: generate ssh keys for my new user in openwrt

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I'd like to use my openwrt so that when I'm logged on a special user  (it's already makes here http://openwrt.org/forum/viewtopic.php?pid=9932#p9932 ), I can connect directly to another ssh machine.

But if I don't want to type the password, I have to create public and private keys dsa keys from openwrt.

The problem is that with dropbear, it'snot possible to create dsa keys, so I use my linux to create dsa keys, and I copy it to the .ssh of dropbear and after I copied the content of my public key in the authorized_keys of my linux client

But ot doesn't work.

I think I'm forced to create dsa keys from openwrt directly... (my linux client have dsa keys so I must create dsa keys in openwrt , I think)

I have to install openssh instead of dropbear to do that?

But openssh take a lot of spacdes more that dopbear? or it's not a problem to desinstall dropbear and to install just after openssh?

I took my precaution, and reactivate the telnet access lol (here: http://openwrt.org/forum/viewtopic.php?id=2101) because if I remove dropbear, and if I don't ahve telnet access anymore :-(.....lol

Thanks.

Bye

I think the dropbear client doesn't support ageng forwarding at least i didn't get it to work. But when I installed the openssh-client it works fine.

I got dropbear to work with keys on OpenWRT. I wrote a small Howto (not finished yet) at:

- http://openwrt.ertl-net.net/

Authticating with keys works fine I have that running too but the dropbear client doesn't support agent forwarding so you have to enter a password for a machine you connect to from openwrt

Hello,

What I want to do is the other side, when I connect from my openwrt to my client linux, that I don't have to type a password.

So I generat in thierry's home, the private and public key like what you say, and after, I copy the rsa public key to the authorized_keys2 but id didn't work :-(.

So I've just to install openssh-client, and I can keep drobear?

Because I'm afraid that openssh client and the client ssh of dropbear may have conflicts together....

I enabled telnet access for more security, but I want to be sure that openssh wille work lol.

Thanks.
Bye

(Last edited by thierry_b on 24 Jul 2005, 15:57)

I just installed the openssh client it doesn't overwrite the dropbear client so they coexist in peace.

Only the symlink to "ssh" gets changed to point to the openssl-client instead of the dropbearclient.

Hello,

I tried that but it didn't work.

You have generate dsa key from openwrt?

Because I don't have ssh-keygen...:-(

SO I try ti generate dsa keygen from my pc client to move to openwrt and i copied this public key in the authorized_keys2 of my client pc.

But it didn't work.

It ask again me the password when I try to connect from my openwrt to my linux client.

Thanks.
Bye

The discussion might have continued from here.