Open SSH (Port 22) on Fedora 15
So Fedora 15 with GNOME 3 is very beautiful. I really like it. Mac’s spotlight like search is +1.
I had a bit hard time accessing my macbook to Fedora 15 via SSH so I thought I should share this with you.
1. Modify sshd_conf file (/etc/ssh/sshd_config): Find Line “Port 22″ and uncomment the line
2. Restart sshd service by issuing
$ service sshd stop$ service sshd restart
3. Let’s check to see if sshd is running
$ service sshd status# or you could$ ps aux|grep sshd
3. Okay, let’s test it. Go to client (my case is my macbook) and issued $ ssh username@ip_address Connect then I got “Connection Refused” Error. So looks like I need to mess with firewall (iptables).
3.1 Edit file /etc/sysconfig/iptables and add the following line. Note that this should go above the first instance of -A INPUT otherwise other rule might block you as rule will will be read from top down and stops as soon as it meets the rule.
# to open ssh
-A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT
$ service iptables restart