Last active
August 30, 2021 05:46
-
-
Save iaoedsz2008/50edf8537f746f087b149f9c7918f3b1 to your computer and use it in GitHub Desktop.
ssh-keygen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX = 20210830 | |
LISTKEY = | |
LISTKEY += $(PREFIX)00 | |
LISTKEY += $(PREFIX)01 | |
LISTKEY += $(PREFIX)02 | |
LISTKEY += $(PREFIX)03 | |
LISTKEY += $(PREFIX)04 | |
LISTKEY += $(PREFIX)05 | |
LISTKEY += $(PREFIX)06 | |
LISTKEY += $(PREFIX)07 | |
LISTKEY += $(PREFIX)08 | |
LISTKEY += $(PREFIX)09 | |
.PHONY: all | |
all: $(LISTKEY) | |
cat $(addsuffix .pub,$(LISTKEY)) > authorized_keys | |
tar -zcf private.tar.gz $(LISTKEY) | |
tar -zcf public.tar.gz $(addsuffix .pub,$(LISTKEY)) authorized_keys | |
@echo done | |
$(LISTKEY): | |
ssh-keygen -t rsa -b 4096 -f $@ -N "" -C "" -q | |
.PHONY: clean | |
clean: | |
rm -f $(LISTKEY) $(addsuffix .pub,$(LISTKEY)) private.tar.gz public.tar.gz authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment