Changes

Jump to: navigation, search

OPS235 Lab 2 - CentOS7 - VMware

121 bytes added, 07:10, 6 June 2016
no edit summary
<li value="20">Start and enable the SSH server to allow access to your virtual machine with these commands (semi-colon allows commands to be run in sequence):<br /> <b><code><span style="color:#3366CC;font-size:1.2em;">systemctl start sshd; systemctl enable sshd</span></code></b></li>
<li>Find out the IP address of your virtual machine and the name of your Ethernet network adaptor: <b><code><span style="color:#3366CC;font-size:1.2em;">ifconfig</span></code></b> </li>
<li>Enter the following command on your virtual machine to create a firewall exception to allow ssh traffic into the machine:<br /> <b><code><span style="color:#3366CC;font-size:1.2em;">iptables -I INPUT -p tcp -s0/0 -d0/0 --dport 22 -j ACCEPT</span></code></b></li><li>If you are logged in as root, logout to your regular user account.</li><li>Confirm that you can ssh to your virtual machine from the host (your main CentOS installation): <b><code><span style="color:#3366CC;font-size:1.2em;">ssh regularuserid@IPaddress</span></code></b> (where '''regularuserid''' is your regular user login id, and '''IPaddress''' is the '''IP_ADDRESS''' of your '''centos2''' VM!).</li><li>Make certain to '''disable SELinux for centos2''' ([http://zenit.senecac.on.ca/wiki/index.php/OPS235_Lab_1_-_CentOS7_-_VMware#Disable_SELinux_and_Perform_Software_Updates refer to lab1])</li></ol>
{{Admon/important|Remember to Backup your VM to USB Key!|Remember that you need to backup your '''centos2''' VM to your USB key before you leave your Seneca lab, or you will lose your work!}}
13,420
edits

Navigation menu