First, become root with su then type your root password. Then, run yum install openssh-server-sysvinit.x86_64 or whatever the appropriate extension is for your processor (maybe something like .i386 instead of .x86_64).
In /etc/ssh/sshd_config, use emacs or your favorite text editor to open whatever port you like. You can look for the default commented line that looks likeuncomment it, and change it to a good port number. I use xxx22 (where x is a digit that I do not want to give publicly) because 22 is the default port number so a lot of attacks happen there.Code:# Port 22,
Then, in /etc/sysconfig/selinux, changetoCode:SELINUX=enforcingThis part may introduce excessive security vulnerabilities, and I hope someone who knows about this will chime in.Code:SELINUX=permissive.
Then you need to configure your firewall to allow whatever port you specified to use for ssh. You can do this with a GUI by runningas root. You should still be root from the previous steps. The & allows you to run the program "in the background" aka as a graphical user interface (GUI) outside of your terminal window. Click on "Other Ports", "Add", check "User defined" and specify the port number you want with TCP protocol.Code:system-config-firewall &
You should then be able to start the ssh service withCheck this by getting on another computer and running the commandCode:/sbin/service sshd start.where user is your user name on the remote computer, and remote-host is the IP address of the remote machine. You can set up an alias for the IP using DNS services, but that's a separate topic and beyond the scope of this post. If the ssh command does not work, try running /sbin/service sshd status for useful troubleshooting info.Code:ssh user@remote-host -p xxx22
Once all this is working, to enable the ssh server on reboot, give the following command as root:. This will tell the machine to start ssh whenever a boot happens.Code:chkconfig sshd on
I hope this is helpful to someone other than myself; I sure know I'll come back to this post the next time I install Fedora.


Reply With Quote
