RE: More on passwordless logins

From: Ifan Jones (ifan_at_draig.co.uk)
Date: 06/30/03

  • Next message: cmc_at_cat.savycat.com: "chroot"
    Date: Mon, 30 Jun 2003 16:21:47 +0100
    To: "Brian Hatch" <secure-shell@ifokr.org>
    
    

    Thanks Brian I'll give the debug a go

    Sorry, I didn't mean to reply to you persoanlly, so I'll cc this to the
    list in case anyone else out there finds it usefull.

    My command= line was missing only the last " - the gopp script looks
    like this....

    #!/bin/bash
    /usr/bin/sudo /usr/sbin/pppd noauth proxyarp 192.168.0.100:192.168.2.100

    The two IP addresses being what I want the ppp adapters to use.

    -----Original Message-----
    From: Brian Hatch [mailto:secure-shell@ifokr.org]
    Sent: 30 June 2003 15:00
    To: Ifan Jones
    Subject: Re: More on passwordless logins

    > Which (I think) gives my vpn user rights to run pppd. pppd is
    launched
    > from a small script called gopp which is launched from the authorized
    > keys file as follows...
    >
    > no-X11-forwarding,command="/home/vpn/gopp

    (Seems like you've left out the rest of the 'command=' part...)

    It's important that the pppd options match, both on the command
    line and the defaults in /etc/ppp. Make sure pppd is in debug mode
    and check the syslogs to see if you can see what's going on. Also,
    you might want to add a bit of debug stuff in gopp, such as

            #!/bin/sh
            # this is gopp
            DEBUG=/home/vpn/debug.txt
            exec 2>$DEBUG
            echo "Gopp started at "`date` >&2
            echo "Gopp pid is $~ >&2
            echo "Gopp arguments $@" >&2
            ...
            echo "running /usr/bin/pppd arg1 arg2 arg3" >&2
            /usr/bin/pppd arg1 arg2 arg3
            echo "pppd exited with $?" >&2

    --
    Brian Hatch                  bourne_shell$ eval `host -a
       Systems and                cur.pgp.ifokr.org|awk -F\"
       Security Engineer          '{print $2}'`| gpg --import
    http://www.ifokr.org/bri/
    Every message PGP signed
    

  • Next message: cmc_at_cat.savycat.com: "chroot"

    Relevant Pages

    • Re: Strange errors
      ... when I just cut and past the last command it works without ... I turned JIT off and I still get the randomly get these ... Type "dbstop if error" without the quotes at the prompt, ... you'll enter debug mode. ...
      (comp.soft-sys.matlab)
    • Re: Operands to the || and && operators must be co
      ... % -or- enter the debug mode right after the first command ... Operands to the || and && operators must be convertible to logical ... convertible to logical scalar values.' ...
      (comp.soft-sys.matlab)
    • Warning: "Project will be debugged with specific security permissions"
      ... my project and run in debug mode. ... command line arguments are not be passed to the ... I installed the latest Managed DirectX SDK (I think it's ... Clicking NO cancels the execution ...
      (microsoft.public.vsnet.debugging)
    • Re: Strange errors
      ... when I just cut and past the last command it works without ... I turned JIT off and I still get the randomly get these ... but again in debug mode everything ... wouldn't solve the root problem, ...
      (comp.soft-sys.matlab)
    • Re: -Crawl- YAOODD: Thog the Ogre Fighter
      ... Darshan Shaligram wrote: ... > will know and love this command). ... > rather not use Ctrl-D if possible. ... as I never used debug mode. ...
      (rec.games.roguelike.misc)