2012/9/30 Tiansworld <tiansworld@fedoraproject.org>
On 09/30/2012 01:54 PM, cornel panceac wrote:
is there a way to enable ssh on f18? i tried enable/disable, start/stop
firewalld/iptables.service, and even lokkit --enabled (which responded
with: ERROR: FirewallD is active, please use firewall-cmd.)



Please make sure you have installed ssh first.
For you to ssh a remote host, you should install openssh-clients.
For people you want to ssh your machine, then you should install openssh-server as well.
You may run this to check:
rpm -qa|grep ssh

If you have the software packages installed, you can use ssh directly.
If you want others to ssh your machine, you should make the sshd service available, and make sure the firewall is set to trust ssh service.
Use command: systemctl enable sshd.service to enable sshd service.
Use system-config-firewall to adjust trusted services.

Hope these procedures can help you.

thank you , Tiansworld. here's the status:

ssh is installed ans sshd is running. ssh connections do not work if:

"firewalld.service is running and iptables.service is not"

or

"iptables.service is running and firewalld.service is not"

or

"both iptables.service and firewalld.service are not running"

all this time, ip6tables.service is stopped.

when both services are stopped, nmap localhost (on server) shows ssh port is open (and also other ports), but nmap <server_ip> (on client) shows no port is open. as far as i can tell, iptables -L pretends input is on ACCEPT anywhere, etc.