Centos SSH Public keys

Make and copy your public key: [Blogpost 74](https://hwcdi.com/blogpost/74/Enable_Key_based_SSH_%28for_machine_to_machine_talking_%28backup%2C_etc%29%29) then [root@STG1 colin]# chmod 700 .ssh/ [root@STG1 colin]# chmod 600 .ssh/authorized_keys [root@STG1 colin]# restorecon -Rv .ssh/

NGINX Multitenancy

#excerpt of nginx.conf: server { listen 80; server_name zfsftw.com; location / { root /usr/local/www/nginx-dist/zfsftw; index index.html; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/www/nginx-dist; } } server { listen 80; server_name hwcdi.com; #access_log logs/host.access.log main; ## redirect http to https ## rewrite ^ https://$server_name$request_uri? permanent; #error_page 404 /404.html; # redirect[…]

Enable Key based SSH (for machine to machine talking (backup, etc))

Thanks to Dan for expediting this one! mikrodots@MikroDroplet:~$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/mikrodots/.ssh/id_rsa): Created directory ‘/home/mikrodots/.ssh’. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/mikrodots/.ssh/id_rsa. Your public key has been saved in /home/mikrodots/.ssh/id_rsa.pub. The key fingerprint is:[…]

Unix set Hostname

Set Hostname: (Derive what you need from the following): root@MikroDroplet:/home/mikrodots# hostname MikroDroplet root@MikroDroplet:/home/mikrodots# cat /etc/hostname MikroDroplet root@MikroDroplet:/home/mikrodots# cat /etc/hosts 127.0.0.1 MikroDroplet.MikroManage.com MikroDroplet localhost root@MikroDroplet:/home/mikrodots# hostname MikroDroplet root@MikroDroplet:/home/mikrodots# hostname -f MikroDroplet.MikroManage.com