Ubuntu 16.04 & Nginx & SSL + Jenkins
Ubuntu 16.04 & Nginx & SSL + Jenkins Ubuntu Initial setup Connect and upgrade
1 2 3 4 |
ssh root@[your_server_ip] apt-get update apt-get full-upgrade |
Increase SSL session time
1 2 |
sudo nano /etc/ssh/sshd_config |
Apply below, if exist, change value, if not exist, add the line.
1 2 3 4 |
TCPKeepAlive no ClientAliveInterval 30 ClientAliveCountMax 100 |
Create a New User, avoid using root all the time
1 2 |
adduser [user_name] |
Give new user Root privileges
1 2 |
usermod -aG sudo [user_name] |
Switch to the new user, install public key
1 2 3 4 |
su - [user_name] mkdir ~/.ssh chmod 700 ~/.ssh |
Copy the public key content […]