User Tools

Site Tools


windows:hgsync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows:hgsync [2021/10/20 14:59]
tschulz [hgsync_logout.cmd]
windows:hgsync [2021/10/20 16:14] (current)
tschulz [userkeygen.sh]
Line 332: Line 332:
         ssh-keygen -t rsa -N ""​ -f id_rsa         ssh-keygen -t rsa -N ""​ -f id_rsa
         cp id_rsa.pub authorized_keys         cp id_rsa.pub authorized_keys
-        ​cd ${USERHOME} +        ​chmod -R 700 ${USERHOME} 
-        chown -R ${PAM_USER} ${USERHOME}/.ssh +        chown -R ${PAM_USER} ${USERHOME} 
-        chmod 700 .ssh+
 else else
         echo "Keys Present"​         echo "Keys Present"​
-        chown -R ${PAM_USER} ${USERHOME}/.ssh +        ​chmod -R 700 ${USERHOME} 
-        chmod 700 .ssh+        ​chown -R ${PAM_USER} ${USERHOME} 
 fi fi
 </​code>​ </​code>​
windows/hgsync.1634759975.txt.gz · Last modified: 2021/10/20 14:59 by tschulz