Re: More on passwordless logins
From: Brian Hatch (secure-shell_at_ifokr.org)
Date: 06/27/03
- Previous message: Markus Friedl: "Re: Sftp Logging Patch"
- In reply to: Ifan Jones: "More on passwordless logins"
- Next in thread: Ifan Jones: "RE: More on passwordless logins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 27 Jun 2003 11:47:18 -0700 To: Ifan Jones <ifan@draig.co.uk>
> My only concern is having created a user specifically for
> the VPN (called vpn) I have had to change the vpn user's
> primary group ID to 0 (root) or it would still ask for a
> password when connecting via SSH. Should I be concerned
> with the security of this?
Yes, you can definitely have non-root users establish a
PPP over SSH VPN. You'll need to set up 'sudo' on both
ends, and grant the VPN user the ability to run pppd with
the correct options. (You should be as detailed in your
sudoers file as possible to prevent this account from doing
anything they shouldn't.)
It's a bit tricky to get all the quotes and backslashes
in the right spot since you'll have the sudo command plus
the pppd command on the SSH command line, so you'll probably
want to use a shell script on both ends. Also, I'd highly
recomend using the 'command=' option in authorized_keys to
force this script and not allow this user to do anything but
attempt to create a VPN. And, if you want to have even more
security, have native PPP authentication (pap/chap) occur as
well.
For a detailed set of scripts to do this, get Building Linux VPNs.
(Sorry for the plug - I wish I could have the scripts online, but
they're password protected.)
-- Brian Hatch You need to shave. If I Systems and met you on the street, I'd Security Engineer cross to avoid you. http://www.ifokr.org/bri/ --Bree Every message PGP signed
- application/pgp-signature attachment: stored
- Previous message: Markus Friedl: "Re: Sftp Logging Patch"
- In reply to: Ifan Jones: "More on passwordless logins"
- Next in thread: Ifan Jones: "RE: More on passwordless logins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|