Heres a way of doing something....... I have just done it on my friends system and got it working with a little trial
Open a terminal and log in as root try su - (not sure what the - does but without it on some sytems you are not a "real" root user so I always now use that rather than just su
You should now see [root@localhost ~]#
Now install ssh by using this command
yum install openssh openssh-clients openssh-server pam_ssh pam_abl
chkconfig sshd on (not sure what happens if you get a negative result)
service sshd restart
This should set the pc up for ssh on port 22 - to change this I opened sshd_config using
If you do not use gedit you can use vi
Add this line
Port 2222 (use any no. higher tham 1000)
And save, probably best to restart sshd using
service sshd restart
You now have to open the port you changed to mine was 2222 - you do this by opening up the firewall SELinux settings in your desktop GUI and open the port no you used. You should now be able to ssh from a computer behind your router. if using windows to ssh into Linux try using a program called putty - http://www.chiark.greenend.org.uk/~sgtatham/putty/
If that works, your good to go live. I am presumming that the linux pc is behind the router not the pc you are trying to connect from
To get access from the outside the router you need to create port forwarding on the router - on a Belkin it is called a virtual server. enter the inbound port no range, I tried 2222 - 2222 but I am not sure it worked so changed it to 2221 - 223 and it now works ok. Set the private port to the same settings and enable.
This should in theory work..... If it does not try relabeling your SELinux, you can do this by using the SELinux Admin tool from the GUI - I use Gnome, not sure about KDE. You then need to reboot
I got my system working using various combos of the above, hope this helps, most of it is from various posts on these forums that I have trawled through. Sorry if it is a little ABC in description but I find that sometime we get help and I dont fully understand it all - But its great to have the help.
PS If any of you "clever" guys can help with CLI commands rather than using the GUI I would appreciate it.
I am learning, slowly......