The objective of this TP is to deploy collaborative tools with their basic configuration on the server side and test them on the client side. We want to demonstrate the possibility of installing those tools without going too much into detailed configuration. It is not required to write bash scripts for this lab.
Basic ssh configuration:
open-ssh
has been installed on the VMclient01
sudo systemctl status ssh
sudo ufw allow ssh
ssh client01@server
Configure ssh authentication by public/private key:
ssh-keygen
. Use the default locations to store the keysssh-copy-id -i ~/.ssh/id_rsa.pub client01@server
.
This command appends the public key of the client to the file /home/client01/.ssh/authorized_keys
on the server.ssh client01@server
.git
package has been installed on the VMsudo adduser --disabled-password git
sudo su git
cd
mkdir ~/.ssh
chmod 700 ~/.ssh
touch ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
cd /home/git
sudo mkdir m1aserepo.git
cd m1aserepo.git
sudo git init --bare
cd ..
sudo chown -R git.git m1aserepo.git/
git clone git@[IPADDRESS]:[repo-name] ~/git/
sudo ufw allow 'Apache'
sudo ufw status
sudo systemctl status apache2
192.168.56.101
. We should see the default apache page web on the server/var/www/html
. You can modify and deploy your own website here.