#!/bin/sh cd /USERACCT/.ssh mkdir -p /USERACCT/.ssh/Old /usr/bin/mv -f /USERACCT/.ssh/* /USERACCT/.ssh/Old ssh-keygen -b 768 -t rsa -f /USERACCT/.ssh/id_rsa -N '' mv id_rsa.pub id_rsa.`hostname` # NOTE: dsa was used with SOLARIS 8 - it did NOT support ssh protocols well, it is out of date # ssh-keygen -b 768 -t dsa -f /USERACCT/.ssh/id_dsa -N '' # mv id_dsa.pub id_dsa.`hostname` cp /home/USERACCT/authorized_keys /USERACCT/.ssh/authorized_keys chmod 600 /USERACCT/.ssh/authorized_keys