Open main menu

CDOT Wiki β

Changes

OPS345 Lab 1

805 bytes added, 01:27, 11 December 2021
Explore your new VM
== Explore your new VM ==
Look at your ops435-first instance details and find its automatically-assigned public IP address. Connect to it with SSH. Note that you need to user your private key to connect, and since it doesn't have a default name nor is it in the default location for SSH keys: you need to specify the path to it manually. The default username on Amazon Linux is '''ec2-user'''. [[File:AWSFirstSSH.png|800px|border|center]]
You have at least one semester's worth of experience of CentOS, so look around to see if anything looks different from what you're used to. For example:
*Many packages not installed by default in the Minimal installation of CentOS (e.g. net-tools) ''are'' installed by default in Amazon Linux. I like to also install telnet and nmap.* * Note that Amazon Linux has its own package repositories: '''/etc/yum.repos.d/amzn2''', but the yum/rpm commands work the same as in CentOS.* The systemctl command to control your services works the same way as in CentOS.* Note neither iptables nor any other firewall is installed by default. It is in CentOS.* You user information files ('''/etc/passwd''', '''/etc/shadow''', '''/etc/group''') are used in a completely standard way.* Have a look at the output of '''netstat -atnp''' and '''netstat -coreaunp''' to see what ports services are listening on in a default installation.repo  
** Not linked to RedHat/IBM support cycles and policies.
* Explore the VM:
** connect with user ec2-user, ssh key
** Many packages not installed by default in CentOS /are/ installed by default in Amazon Linux.
** yum install telnet
** systemctl works the same way
** Note neither iptables nor any other firewall is installed by default.
** passwd, shadow, group files
** netstat -atnup
== Change the default username ==