-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51a9e86
commit 7cbf039
Showing
2 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Credentials | ||
|
||
## SSH | ||
|
||
Switch to the jenkins user: | ||
|
||
```bash | ||
|
||
sudo su - jenkins | ||
``` | ||
|
||
Generate the SSH key (if not already created): | ||
|
||
```bash | ||
|
||
ssh-keygen -t rsa -b 4096 -C "[email protected]" | ||
|
||
``` | ||
|
||
Save the key in the default location (`/var/lib/jenkins/.ssh/id_rsa`) and provide a passphrase if needed. | ||
|
||
Copy the SSH public key to GitHub: | ||
|
||
``` | ||
cat ~/.ssh/id_rsa.pub | ||
``` | ||
|
||
Copy the content of the public key and add it to GitHub under Settings > SSH and GPG keys > New SSH Key. | ||
|
||
|
||
Go to jenkins, and add the `Private` key to credentials | ||
|
||
!> Need to add known host. If you don't know, how to just clone any repo, it will prompt yes/No. Press `YES` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Jenkins | ||
* [Install Jenkin](jenkin/installation.md) | ||
* [Config with Private IP](jenkin/config_with_private_ip.md) | ||
* [Email Integration/notification](jenkin/Email%20Integration.md) | ||
* [Install jenkin on docker](jenkin/jenkin_on_docker.md) | ||
* [Troubleshoot](jenkin/Troubleshoot.md) | ||
|
||
* [Install Jenkin](jenkin/installation.md) | ||
* [Config with Private IP](jenkin/config_with_private_ip.md) | ||
* [Email Integration/notification](jenkin/Email%20Integration.md) | ||
* [Credentials](jenkins/credentials.md) | ||
* [Install jenkin on docker](jenkin/jenkin_on_docker.md) | ||
* [Troubleshoot](jenkin/Troubleshoot.md) |