Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


davidcole

6099 posts

Uber Geek
+1 received by user: 1465

Trusted

#42687 8-Oct-2009 21:00
Send private message

I'm trying to get a linux desktop to connect via ssh to a wrt54g router i have.  It has ssh running on it, which is far as i can tell is drop bear.

I've successfully been connecting to this router via windows and putty using a private/public key.

How can i transfer that key over to the linux machine?  And what should it look like?

I'm assuming the public one is on the wrt54g (in the web admin tool) and the private one is the ppk file I use on putty.

Can this be done?




Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


Create new topic
rphenix
990 posts

Ultimate Geek
+1 received by user: 127

ID Verified
Lifetime subscriber

  #265364 20-Oct-2009 16:49
Send private message

Correct :)

PPK = Putty Private Key
you just need to open the contents of that file, and then it goes into your ~/.ssh/ folder in linux
then open up ~/.ssh/config
and create an entry like this:
host wrt
hostname 10.1.1.1
user root
identityfile /root/.ssh/my-private-key-for-wrt
compression no
protocol 2

the file permissions of the ~/.ssh folder and associated files is important.
the private key needs to be set as chmod 600 keyfile, with the .ssh directory chmod 700





Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.