Results 1 to 4 of 4

Thread: How to startup SSH client with public key

  1. #1

    How to startup SSH client with public key

    SSH client with public key work fine :-), but how to implement to running to startup without login admin?

    Exaple:
    ssh -R 50000:194.228.x.x:22 username@194.228.x.x -k /etc/public_rsa_key

    thanks for all!!!
    :-)

  2. #2
    Hi, please help!

    cat /usr/local/sbin/post-boot
    #!/bin/sh
    ssh -R 30000:127.0.0.1:22 -i /etc/dropbear_rsa_host_key username_real@194.228.x.x

    or

    cat /usr/local/sbin/post-mount
    #!/bin/sh
    ssh -R 30000:127.0.0.1:22 -i /etc/dropbear_rsa_host_key username_real@194.228.x.x

    NOT WORK!!!
    Thanks for help!!!

  3. #3
    Join Date
    May 2004
    Location
    Moscow, Russia
    Posts
    50
    For me following code in post-mount works fine:

    Code:
    while :
    do
            ssh -i /usr/local/root/.ssh/identity -R 2222:localhost:22 remote_user@remote_host.in.the.net ping -i 300 localhost
            echo "SSH exited" >> /tmp/syslog.log
            sleep 30
    done
    given that asus's public key has been properly added to ~remote_host/.ssh/authorized_keys.

    After that if I want to access asus from remote host, I login there, and use
    Code:
    ssh -p 2222 admin@localhost
    Ping -300 .. is necessary to prevent tunneling ssh from being murdered for inactivity.

    SO it goes,
    Roofcat
    Last edited by RoofCat; 17-05-2005 at 07:29.

  4. #4

    Thumbs up

    Hi! thanks very much !!! This is work fine !!!

Similar Threads

  1. Services startup
    By byteZero in forum WL-500g Q&A
    Replies: 8
    Last Post: 14-05-2005, 12:47
  2. Customizing Startup Script
    By gwl in forum WL-500g Q&A
    Replies: 2
    Last Post: 29-12-2004, 23:44
  3. Public IPs for PCs behind a router
    By COOLIO_comes in forum WL-500g Q&A
    Replies: 4
    Last Post: 05-11-2004, 21:01
  4. The WL-HDD as Public FTP server
    By JanWing in forum WL-HDD Q&A
    Replies: 3
    Last Post: 02-10-2004, 14:04
  5. wl join at startup?
    By stab in forum WL-500g Q&A
    Replies: 1
    Last Post: 25-07-2004, 14:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •