[ale] Was Routing: Now VPN

Chris Fowler cfowler at outpostsentinel.com
Sun Dec 2 14:44:40 EST 2001


Okay,

I begining to make things happen on the VPN side.
It seems like I get a: Permission Denied (public key) when I execute ssh
I did create the /root/.ssh/identity.vpn and I did edit the
/etc/ssh/sshd_config options on
the server.  Is there something that may be missing that is not mentioned in
the howto?


ssh -t -e none -o 'Batchmode yes' -c blowfish -i
/root/.ssh/identity.vpn.pub -l vpn skylab
Permission denied (public key)

Here is script:
[root at mir vpn]# cat vpnd
#! /bin/sh

USERNAME=vpn
IDENTITY=/root/.ssh/identity.vpn
VPN_SERVER=ssh
CRYPTO=blowfish

export USERNAME IDENTITY VPN_SERVER CRYPTO

ln -sf /usr/bin/ssh /usr/local/vpn/${VPN_SERVER}

killall $VPN_SERVER 1>/dev/null 2>/dev/null
sleep 5
killall -9 $VPN_SERVER 1>/dev/null 2>/dev/null

echo -n "Starting VPN tunnel: "
/usr/local/vpn/pty-redir /usr/local/vpn/${VPN_SERVER} -t -e none -o
'Batchmode yes' -c $CRYPTO -i $IDENTITY -l $USERNAME  skylab >
/tmp/vpn-device
sleep 15

/usr/sbin/pppd `cat /tmp/vpn-device` noipdefault ipcp-accept-local
ipcp-accept-remote local noauth nocrtscts lock nodefaultroute
sleep 15
echo -n "pppd "

/sbin/route add -net 192.168.2.0 gw 192.168.2.254  255.255.255.0
echo -n "route"

echo " "


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list