Skip to content

Commit 2dd702f

Browse files
committed
generate SSH key snipept
1 parent 00bc7de commit 2dd702f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git/setup-ssh-for-git.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Prerequisites - you need to get SSH key supported by your git hosting service.
22
# deploy it into: c:\id_rsa
33

4+
# generate SSH key
5+
ssh-keygen -t rsa -b 4096 -C "key-comment" # 4096 RSA key (SHA256)
6+
ssh-keygen -t ed25519 -C "key-comment"
7+
48
# install choco
59
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
610

0 commit comments

Comments
 (0)