fix: ssh permission function now turns of $HOME group write
parent
67417a609a
commit
5526497923
|
@ -1,4 +1,7 @@
|
|||
#!/bin/bash
|
||||
ssh_dir_permissions() {
|
||||
sudo chmod -R g-w $HOME
|
||||
echo warning turned off group write for $HOME as this can cause ssh failure
|
||||
sudo chown -R $USER:$USER $HOME/.ssh
|
||||
sudo chmod 00700 $HOME/.ssh
|
||||
sudo chmod 600 $HOME/.ssh/authorized_keys
|
||||
|
|
Reference in New Issue