Skip to content

- practicing and storing files related to cloud concepts

Notifications You must be signed in to change notification settings

Anubhaw19/Practice_Cloud

Repository files navigation

Practice_Cloud

Appendix

ssh

  • create a public and private ssh-keys in local host
  ssh-keygen -t rsa
  • copy the public-key to remote host for authentication
  ssh-copy-id user@ip
  • ssh into a VM
  ssh user@ip

Jenkins Setup

 #!/bin/bash
          sudo apt install openjdk-11-jdk -y
          export JAVA_HOME=/usr/lib/jvm/openjdk-11
          export PATH=$PATH:$JAVA_HOME/bin
          echo "export JAVA_HOME=/usr/lib/jvm/openjdk-11" | sudo tee --append /etc/profile
          echo "export PATH=\$PATH:\$JAVA_HOME/bin" | sudo tee --append /etc/profile
          curl -fsSL https://pkg.jenkins.io/debian/jenkins.io.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
          echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian binary/ | sudo tee  /etc/apt/sources.list.d/jenkins.list > /dev/null
          sudo apt-get update -y
          sudo apt-get install jenkins -y
          sudo systemctl start jenkins.service
          sudo ufw allow 8080
          sudo ufw allow OpenSSH
          sudo ufw --force enable

About

- practicing and storing files related to cloud concepts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published