added mkdir for .ssh folder
This commit is contained in:
@@ -43,6 +43,7 @@ rc-service sshd start
|
|||||||
|
|
||||||
# add ssh keys for akanealw
|
# add ssh keys for akanealw
|
||||||
if [[ -d /home/akanealw ]]; then
|
if [[ -d /home/akanealw ]]; then
|
||||||
|
mkdir /home/akanealw/.ssh
|
||||||
cp /home/akanealw/.ssh/authorized_keys /home/akanealw/.ssh/authorized_keys.bak > /dev/null 2>&1
|
cp /home/akanealw/.ssh/authorized_keys /home/akanealw/.ssh/authorized_keys.bak > /dev/null 2>&1
|
||||||
isInFile=$(cat /home/akanealw/.ssh/authorized_keys | grep -c "winpc-akanealw")
|
isInFile=$(cat /home/akanealw/.ssh/authorized_keys | grep -c "winpc-akanealw")
|
||||||
if [ $isInFile -eq 0 ]; then
|
if [ $isInFile -eq 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user