Learning to Access an OpenWRT Access Point Using SSH

To make edits in the settings of an OpenWRT WiFi access point on the command line I need to learn how to gain access to this AP by SSH from my Mac’s terminal.

Create a Public SSH-Key

I open the terminal application on my Mac and type in the command to create a public ssh key:

I get a response as follows:

I left the filename (Enter file in which ot save…) blank to have it named the standard: id_rsa.pub

I left the passphrase (Enter passphrase…) empty for no passphrase.

Copy Public key to Access Point

Searching the web brings up the idea to use ssh-copy-id to copy the public key to the access point. I need to install this command first. I haven’t been able to use it in the end, but here’s a good tutorial on how to do: https://www.jacobtomlinson.co.uk/2013/01/24/ssh-copy-id-os-x/

The reason this didn’t work for me was that I didn’t type in the command porpperly. It should have been:

Therefore I manually opend the public key file with TextEdit, copied it’s content, pasted it in the public ssh key field on the AP using the machine’s web interface.

This is located in System/ Administration and scrolling down to SSH-Keys.

Enabling Remote SSH Access on the OpenWRT Access Point

I followed this tutorial: http://blog.differentpla.net/blog/2015/05/27/openwrt-ssh-wan

Enter the Access Point From Command Line

I now am able to enter the access point using this command without having to type in a passphrase:

Resources I’ve been using to learn this

https://www.jacobtomlinson.co.uk/2013/01/24/ssh-copy-id-os-x/

http://blog.differentpla.net/blog/2015/05/27/openwrt-ssh-wan

Leave a Reply

Your email address will not be published. Required fields are marked *

15 + nine =