File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -85,41 +85,41 @@ Make sure to follow the below steps while creating SSH Keys and using them.
85
85
The best practice is create the SSH Keys on local machine not remote machine.
86
86
Login with username specified in Github Secrets. Generate a RSA Key-Pair:
87
87
88
- rsa
88
+ ### Generate rsa key
89
89
90
90
``` bash
91
91
ssh-keygen -t rsa -b 4096 -C
" [email protected] "
92
92
```
93
93
94
- ed25519
94
+ ### Generate ed25519 key
95
95
96
96
``` bash
97
97
ssh-keygen -t ed25519 -a 200 -C
" [email protected] "
98
98
```
99
99
100
100
Add newly generated key into Authorized keys. Read more about authorized keys [ here] ( https://www.ssh.com/ssh/authorized_keys/ ) .
101
101
102
- rsa
102
+ ### Add rsa key into Authorized keys
103
103
104
104
``` bash
105
105
cat .ssh/id_rsa.pub | ssh b@B ' cat >> .ssh/authorized_keys'
106
106
```
107
107
108
- ed25519
108
+ ### Add ed25519 key into Authorized keys
109
109
110
110
``` bash
111
111
cat .ssh/id_ed25519.pub | ssh b@B ' cat >> .ssh/authorized_keys'
112
112
```
113
113
114
114
Copy Private Key content and paste in Github Secrets.
115
115
116
- rsa
116
+ ### Copy rsa Private key
117
117
118
118
``` bash
119
119
clip < ~ /.ssh/id_rsa
120
120
```
121
121
122
- ed25519
122
+ ### Copy ed25519 Private key
123
123
124
124
``` bash
125
125
clip < ~ /.ssh/id_ed25519
You can’t perform that action at this time.
0 commit comments