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
Last revision Both sides next revision
windows:hgsync [2021/10/20 14:59]
tschulz [hgsync_logout.cmd]
windows:hgsync [2021/10/20 16:14]
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 +        ​#chown -R ${PAM_USER} ${USERHOME}/​.ssh 
-        chmod 700 .ssh+        ​#chmod 700 .ssh 
 +        chmod -R 700 ${USERHOME} 
 +        chown -R ${PAM_USER} ${USERHOME} 
 fi fi
 </​code>​ </​code>​
windows/hgsync.txt · Last modified: 2021/10/20 16:14 by tschulz