Changes

Jump to: navigation, search

OPS235 Lab 2 - CentOS7

243 bytes added, 19:33, 27 March 2015
no edit summary
<ol>
<li value="15">Enable SSH access to your virtual machine with these commands (semi-colon allows commands to be run in sequence):<br /> <b> <code><span style="pointer-events: none;cursor: default;color:#3366CC;">service sshd start; chkconfig sshd on</span></code></b></li> <li>Find out the IP address of your virtual machine: <b><code><span style="pointer-events: none;cursor: default;color:#3366CC;">ifconfig eth0</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="pointer-events: none;cursor: default;color:#3366CC;">iptables -I INPUT -p tcp -s0/0 -d0/0 --dport 22 -j ACCEPT</span></code></b></li>
<li>Confirm that you can ssh to your virtual machine from the host (your main CentOS installation): <code>ssh ''IPaddress''</code></li>
</ol>
13,420
edits

Navigation menu