https://github.com/twitcher07/update-github-public-keys
https://github.com/twitcher07/update-github-public-keys
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/twitcher07/update-github-public-keys
- Owner: twitcher07
- License: mit
- Created: 2023-04-19T16:16:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-07T13:27:20.000Z (almost 3 years ago)
- Last Synced: 2025-05-22T22:41:02.852Z (about 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to use:
## Step 1: Remove github IP addresses
```
curl -fsSL https://raw.githubusercontent.com/twitcher07/update-github-public-keys/main/remove_ips.sh | bash
```
or pass a path to the known_hosts file that you want to edit (for when using user with sudo privileges)
```
curl -fsSL https://raw.githubusercontent.com/twitcher07/update-github-public-keys/main/remove_ips.sh | bash -s -- [path/to/user]/.ssh/known_hosts
```
## Step 2: Add github.com public keys
For current user:
```
curl -fsSL https://raw.githubusercontent.com/twitcher07/update-github-public-keys/main/update_keys.sh | bash
```
or pass a path to the known_hosts file that you want to edit (for when using user with sudo privileges)
```
curl -fsSL https://raw.githubusercontent.com/twitcher07/update-github-public-keys/main/update_keys.sh | bash -s -- [path/to/user]/.ssh/known_hosts
```