How to enable sshd on Fedora 11?
Solution 1:
1 Disable firewall to host (only long enough to verify it isn't the firewall
2 Open a terminal, su
into the root user, and type /etc/init.d/sshd start
This will atleast give you whatever errors you may be seeing. Hopefully it'll acknowledge the start
3 Enable firewall Verify that the firewall isn't the problem by connecting from remote host
Any errors from this, if you post, we might all be able to help.
You may notice in step 2 that the computer is generating your keys, which may have not been done sooner. This would explain why it wasn't working earlier. If it didn't create the keys, that means that they were previously generated and you're O.K.
Solution 2:
I was making a stupid mistake.
The problem was that I was trying to access the wrong IP address. The IP address was changed by DHCP once the machine had rebooted, and I kept trying to access the old IP address.
This is the reason why the local SSH connection was working but not remotely. I should have run ifconfig
earlier to check the IP address.
There should be only 2 steps to this:
- Enable sshd as a trusted service using
system-config-firewall
- Start sshd as a service using
service sshd start
The second step makes sure that the keys have been generated. SELinux does not need to be touched at all.
Solution 3:
SELinux is not the problem here. Do not disable SELinux or set it in permissive mode. There is absolutely no reason to do so. My laptop has been running F11 since the beginning of April with SELinux in enforcing mode without any problems.
SELinux only becomes a problem when you have manually created keys and placed them in /etc/ssh, for example, but since that is not the problem, leave SELinux alone.
Fedora does not have very bizarre hosts.deny rules, like for example Arch does, nor does it block ssh in iptables by default.
Please post the output of /var/log/secure and /var/log/messages around the time you are trying to start sshd and I'll see if I can help you out.
Solution 4:
Ennable SSHD using this command systemctl enable sshd.service
su -
systemctl enable sshd.service
systemctl start sshd.service