Skip to content

A simple bash script to automatically set the correct ownership and permissions for the `.ssh` directory and its contents based on the current directory's name. Ensures a secure setup for SSH configurations with minimal effort.

License

Notifications You must be signed in to change notification settings

AliGencsoy/ssh-permission-fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ssh-permission-fixer

A simple bash script to automatically set the correct ownership and permissions for the .ssh directory and its contents based on the current directory's name. Ensures a secure setup for SSH configurations with minimal effort.

Install

cURL:

sudo curl -sL https://raw.githubusercontent.com/AliGencsoy/ssh-permission-fixer/refs/heads/main/ssh-permission-fixer -o /usr/local/bin/ssh-permission-fixer && sudo chmod +x /usr/local/bin/ssh-permission-fixer && sudo chown $(whoami):$(whoami) /usr/local/bin/ssh-permission-fixer

wget:

sudo wget -q -O /usr/local/bin/ssh-permission-fixer https://raw.githubusercontent.com/AliGencsoy/ssh-permission-fixer/refs/heads/main/ssh-permission-fixer && sudo chmod +x /usr/local/bin/ssh-permission-fixer && sudo chown $(whoami):$(whoami) /usr/local/bin/ssh-permission-fixer

Usage

After installing successfully, navigate to the parent directory of the .ssh folder and run the command below:

ssh-permission-fixer

The script will automatically adjust the ownership and permissions of the .ssh directory and its contents according to the current directory's name.

About

A simple bash script to automatically set the correct ownership and permissions for the `.ssh` directory and its contents based on the current directory's name. Ensures a secure setup for SSH configurations with minimal effort.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages