OpenWrt Forum Archive

Topic: Question about WPA2 and SSH Keys

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

Hello,

I have two, maybe stupid, questions.

1. How can I configure WPA2 at Kamikaze? I do not get it running. I try following

"option encryption wpa2"

Unfortunately that does not work.


2. Where at Kamikaze can I store ssh keys? So that just persons with this key can connect?

Thanks

shifty

p.s. sorry for my poor english, i hope you understand what I want ;-)

Take a look through: http://downloads.openwrt.org/kamikaze/docs/openwrt.html
I think it points out that wpa and wpa2 are the Radius versions of WPA.

I'm using 'option encryption psk2' and the client side tells me it's WPA2-Personal and it works well smile

On the 2nd one - I hope someone can illuminate that for the both of us - a persistant profile for root (or whoever really) would make things a little quicker - like 'alias ll="ls -al" for instance tongue

ssh keys go into /etc/dropbear/authorized_keys

you can simply take your extant ~/.ssh/authorized_keys and drop in there

You can drop public keys into dropbear's config with the X-WRT interface easily (the text editor works in the snapshots). Anyways, the stuff goes into the /etc/dropbear directory.

My advice: read the wiki, it contains step-by-step instructions on how to get it working. I followed it, and it works, so nothing more to say wink.

ok, I put my key into /etc/dropbear/authorized_keys

I actually followed everything from:
http://wiki.openwrt.org/DropbearPublicK … ationHowto

Unfortunately it still does not work. Any idea?

The /etc/dropbear directory is chmoded 0700 and the /etc/dropbear/authorized_keys file 0600. So that can not be the problem

Problem solved. I missed the "make sure its one line" bit.

thx anyway.

The discussion might have continued from here.