Commit c3a8aec

bryfry <116113+bryfry@users.noreply.github.com>
2020-03-25 10:23:11
Update README.md
1 parent fc3dc48
Changed files (1)
README.md
@@ -7,24 +7,35 @@
 * <kbd>Ctrl</kbd>-<kbd>]</kbd> to exit console
 
 ### Pre-ansible changes
+`ssh root@tmc`
 
 * Disable root ssh access, restart ssh, verify
+
+  `vi /etc/ssh/sshd_config`  
+  `PermitRootLogin no`  
+  
 * Create ubuntu user with passwordless sudoer, ssh access, sudo group
+
+  `# adduser ubuntu` *hit enter about 15 times (creates user without a password)*  
+  `# usermod -aG sudo ubuntu`  
+  `# EDITOR=vi visudo`  
+  `$ sudo cat /root/.ssh/authorized_keys > ~/.ssh/authorized_keys`  
+  
 * Setup python
 
-```
-sudo apt update
-sudo sudo apt install -y software-properties-common
-sudo add-apt-repository -y ppa:deadsnakes/ppa
-sudo apt update
-sudo apt install -y python3.8 python3.8-dev python3.8-distutils python3.8-venv libffi-dev git gcc g++ libapt-pkg-dev
-mkdir git
-cd git
-git clone git@github.com:bryfry/trustme.click.git
-cd trustme.click
-python3.8 -m venv tmc_venv
-source tmc_venv/bin/activate
-python3.8 -m pip install --upgrade pip wheel
-python3.8 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.8.6
-python3.8 -m pip install ansible
-```
+   ```
+   sudo apt update
+   sudo sudo apt install -y software-properties-common
+   sudo add-apt-repository -y ppa:deadsnakes/ppa
+   sudo apt update
+   sudo apt install -y python3.8 python3.8-dev python3.8-distutils python3.8-venv libffi-dev git gcc g++ libapt-pkg-dev
+   mkdir git
+   cd git
+   git clone git@github.com:bryfry/trustme.click.git
+   cd trustme.click
+   python3.8 -m venv tmc_venv
+   source tmc_venv/bin/activate
+   python3.8 -m pip install --upgrade pip wheel
+   python3.8 -m pip install git+https://salsa.debian.org/apt-team/python-apt.git@1.8.6
+   python3.8 -m pip install ansible
+   ```