Fedora 16 comes pretty locked down out of the “box”. If you want access you it through ssh or some other network protocol you’re going to need to do a few things.
I want to start out by saying that the following with make you install less secure so you should really know the reasons why you are doing this. NOTE: a more secure way to do this would be to properly configure you Firewall and SELinux.
First thing you’ll need to do is disable your firewall… then SELinux… and then (in this case) start up sshd.
Disable the Firewall
$ systemctl status iptables.service
Check the status of the Firewall service.
You should see something similar to this.
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/lib/systemd/system/iptables.service; enabled)
Active: active (exited) since Tue, 08 May 2012 12:15:55 -0400; 5s ago
Process: 2523 ExecStop=/usr/libexec/iptables.init stop (code=exited, status=0/SUCCESS)
Process: 2586 ExecStart=/usr/libexec/iptables.init start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/iptables.service
$ sudo systemctl stop iptables.service
This will stop the service from running.
Disable SELinux.
# vi /etc/sysconfig/selinux
Edit the files to read…
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
Enable sshd service.
$ systemctl status sshd.service
you should start by making sure that the service isn’t running.
You should see something similar to this.
sshd.service - OpenSSH server daemon
Loaded: loaded (/lib/systemd/system/sshd.service; enabled)
Active: inactive (dead) since Tue, 08 May 2012 12:22:15 -0400; 6s ago
Process: 883 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/sshd.service
$ sudo systemctl enable sshd.service
Enable the sshd service
$ sudo systemctl start sshd.service
Check sshd status if needed.
$ sudo systemctl restart sshd.service
This can be used to restart the service should you have problems.