Created
August 25, 2016 11:33
-
-
Save y-fedorov/07d6db81484c7964eb02e12f7afca865 to your computer and use it in GitHub Desktop.
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
% ssh -l latistaadmin <Build host IP> | |
# sudo -i | |
# apt-get update | |
# apt-get -f install | |
# useradd -m jenkins -d /var/jenkins -r -U | |
# su jenkins | |
$ cd /var/jenkins | |
$ ssh-keygen -t rsa -b 4096 -C "SSH KEY for Jenkins server" | |
passphrase: <Pass phrase> | |
Your identification has been saved in /var/jenkins/.ssh/id_rsa. | |
Your public key has been saved in /var/jenkins/.ssh/id_rsa.pub. | |
$ mv /var/jenkins/.ssh/id_rsa.pub /var/jenkins/.ssh/authorized_keys | |
$ chmod 600 /var/jenkins/.ssh/authorized_keys | |
$ cat /var/jenkins/.ssh/id_rsa | |
{copy and paste to credentials manager on Jenkins Master} | |
$ rm -f /var/jenkins/.ssh/id_rsa | |
$ rm -f /var/jenkins/.ssh/id_rsa.pub | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment