1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using keys for SSH authentication

Discussion in 'Tomato Firmware' started by DervMan, Jul 5, 2007.

  1. DervMan

    DervMan LI Guru Member

    I use a SSH tunnel between two sites for rsync backups between servers. Currently I have to manually setup the tunnel, I'd like to use private/public keys to automate the process but can't see where I need to store the private key on the WRT.

    Any ideas?

    In the past I've used ssh-keygen but this isn't available on the tomato.

  2. ntest7

    ntest7 Network Guru Member

    I believe the private key is stored in the nvram variable sshd_hostkey
  3. DervMan

    DervMan LI Guru Member


    How do I see/change th nvram parameters?
  4. therock9

    therock9 Guest

    this is how i did

    I did like this

    login to router with ssh/telnet

    type in:

    dropbearkey -t rsa -f key.secret

    the dropbearkey program will print out in the console a publickey. You must install that key on a shell/machine you would like to have access to

    login to the shell/machine

    edit the file in ~/.ssh/authorized_keys

    and paste the publickey in

    if you somehow manage to lose your publickey you can always type in dropbearkey -t rsa -f <your secret key> -y to get it printed out again
  5. DervMan

    DervMan LI Guru Member

    Many thanks
  6. digitalgeek

    digitalgeek Network Guru Member

    There is a text box on the administration config page to allow the input of such keys...

Share This Page