Changes

Jump to: navigation, search

SRT210 Lab 8

983 bytes added, 22:40, 2 April 2019
no edit summary
* Use assymetric encryption (with SSH keys) for password-less SSH authentication.
* Ditribute SSH public keys manually.
* Backup using rsync.
= PART 1: HOST FINGERPRINTS =
* Repeat these steps for the root user on c7host and the root user on every one of your nested VMs.
= PART 3: SSH KEY DISTRIBUTION BACKUPS USING RSYNC =
Rsync is an old tool that currently works over SSH, which makes it very convenient to copy files around, and specifically - to make backups.
* The difference between just copying files using scp and mirroring directories using rsync is that rsync will only transfer files that have been changes since the last sync. That can save a lot of bandwidth and time for making backups.
* Now that you have password-less ssh set up between c7host and all its nested VMs: set up backups for all your nested VMs. For demonstration purposes we'll just back up the /etc/ directory of each vm.
* Use a command such as <code>rsync -axv root@lin1.youruserid.ops:/etc /root/vm-backups/lin1/</code> for each VM to make backups of all of them.
* Try to run that command twice, and notice that the second time it will only transfer files that have changed.
* If you're bored: create a shell script to do all the backups automatically, and set up cron to run that script every hour.
= Lab completion =

Navigation menu