Download presentation
Presentation is loading. Please wait.
Published bySolomon Peters Modified over 9 years ago
1
MEG Myproxy Enabled GSISSHD Kevin Haines STFC AHM'09, Tuesday 8 th December 2009
2
About Me STFC eScience Centre for 6 years NGS 1, 2 and 3 System Administrator for ngs.rl.ac.uk Software development background
3
Interactive Login For Grid Users Provide a UI box with SSH key-based access Extra VO management overhead Attractive to hackers SSH key compromise is common Provide a UI box with GSI-OpenSSH Certificate based authentication Limits the clients which can connect Short-lived delegations – less damage in a compromise
4
GSI-enabled Clients
5
GSI Enabled Clients GSI-OpenSSH Java GSI Client GSI OpenSSH Client
6
MEG = Greater Choice MEG Java GSI Client MyProxy Server GSI OpenSSH Client PuttyWinSCPNautilus FireFTP (FireFox) GFTP Linux/ Cygwin SSH Web Based SSH KonquerorSCP Cert Wizard
7
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config Overall Process: -Take user name+password - Get certificate from MyProxy -Map certificate to user account
8
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config
9
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config
10
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config
11
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config foo/pwd
12
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config /etc/pam.d/megsisshd auth required pam_remapuser.so /usr/sbin/auth_myproxy_user.sh auth required pam_nologin.so account required pam_stack.so service=system-auth password required pam_stack.so service=system-auth session required pam_stack.so service=system-auth session required pam_loginuid.so /etc/pam.d/megsisshd auth required pam_remapuser.so /usr/sbin/auth_myproxy_user.sh auth required pam_nologin.so account required pam_stack.so service=system-auth password required pam_stack.so service=system-auth session required pam_stack.so service=system-auth session required pam_loginuid.so
13
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config foo/pwd
14
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config success=0 for myproxyserver in $MYPROXY_SERVER_LIST;do builtin echo "$PASSWD" | $MYPROXY_GET -s $myproxyserver -l "$MYPROXY_USER" -o $TMPCERT -S >/dev/null 2>&1 if [ $? -eq 0 ];then success=1 break fi done if [ $success -ne 1 ];then #fail silently exit 1 fi export X509_USER_CERT=$TMPCERT export X509_USER_KEY=$TMPCERT userid=`$GSISSH -p $AUTHPORT $AUTHHOST id -un 2>/dev/null` if [ $? -ne 0 ];then # fail silently rm $TMPCERT exit 1 fi # put the certificate into the default Globus location chown $userid $TMPCERT chmod 400 $TMPCERT mv -f $TMPCERT /tmp/x509up_u`id -u $userid` echo $userid success=0 for myproxyserver in $MYPROXY_SERVER_LIST;do builtin echo "$PASSWD" | $MYPROXY_GET -s $myproxyserver -l "$MYPROXY_USER" -o $TMPCERT -S >/dev/null 2>&1 if [ $? -eq 0 ];then success=1 break fi done if [ $success -ne 1 ];then #fail silently exit 1 fi export X509_USER_CERT=$TMPCERT export X509_USER_KEY=$TMPCERT userid=`$GSISSH -p $AUTHPORT $AUTHHOST id -un 2>/dev/null` if [ $? -ne 0 ];then # fail silently rm $TMPCERT exit 1 fi # put the certificate into the default Globus location chown $userid $TMPCERT chmod 400 $TMPCERT mv -f $TMPCERT /tmp/x509up_u`id -u $userid` echo $userid
15
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config ngs0006
16
Installing MEG Default Install Instructions for installing MEG on RHEL4, running on port 2223 wget http://forge.nesc.ac.uk/download.php/465/kgsisshd-0.7-1.src.tgzhttp://forge.nesc.ac.uk/download.php/465/kgsisshd-0.7-1.src.tgz tar zxf kgsisshd*.tgz cd kgsisshd-0.7-1 (Edit Makefile options) make install RHEL 5 needs a different PAM configuration file (will be supplied in v0.8) v0.8 will support MyProxy ports other than 7512
17
Summary 265 lines of C code (pam_remapuser) 88 lines of shell script Easily Extensible MyProxySSO works out of the box Plans to get SARoNGS better supported Popular with Scarf users MEG+SSO: 33 users (258 logins) GSI: 2 users (32 logins)
18
Inside MEG MyProxy Server(s) PAM Stack GSI OpenSSH Server (v4.7) pam_ remap user.so Auth- myproxy- user.sh Config
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.