Browse Source

Created script to fix ssh file permissions after copying existing .ssh folder to new computer.

master
Jeffery Russell 1 year ago
parent
commit
13bd967822
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      fixSSHfilePermissions.sh

+ 8
- 0
fixSSHfilePermissions.sh View File

@@ -0,0 +1,8 @@
#!/bin/bash

chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/config
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub

Loading…
Cancel
Save