To install SSH, as root enter: sudo yum –y install openssh-server openssh-clients
Set the service to start with the machine: chkconfigsshd on
Start the service: service sshd start
Make sure port 22 is opened: netstat –tulpn | grep :22
If port 22 is not open, edit /etc/sysconfig/iptables, as before: vi /etc/sysconfig/iptables
Add the line: -A -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
Save and close the file. Restart iptables: sudo service iptables restart
8.Reboot the system by typing: sudo reboot
Tip: Quick guide to vi: ià Insert Esc keyàEnd insert mode and returns to command mode which allows the below two commands: :q!à Colon followed by q!quits without making any changes. :wqà Colon followed by wq writes and quits, saving changes.
Imported Document ID: HOWTO110256
Subscribing will provide email updates when this Article is updated. Login is required.