
Notice that sshd now listens on new portħ. Change /etc/ssh/sshd_config port to 9876Ħ. Edit /etc/firewalld/services/ssh.xml to change port numberĤ. Make a copy of the default ssh service file:Ĭp /usr/lib/firewalld/services/ssh.xml /etc/firewalld/services/ĪCCEPT tcp - 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ctstate NEWģ. Think it’s cleaner this way.įor example, here are the steps to change sshd port from the default 22 to 9876:ġ.

You will have to edit the following repo’s by commenting entries ‘mirrorlist=.Instead of messing around with the ports directly with RHEL7/CentOS7 firewall-cmd, I’ve decided to update the port number in the ssh.xml service file instead. Yum error “Cannot retrieve metalink for repository: epel. Note: Just in case you face the following error: (it should display EPEL repo in the output) Step 1 – Enable EPEL (Extra Packages for Enterprise Linux) and install rpm We have an internal secure proxy server via which Internet was easily available for my servers.

Tags -ask-pass /etc/environment Absolute Path Ansible Application AWS BSD cdrom solaris CentOS Cloud CodeWeavers Command companion disk CrossOver default permission Defination DIR_COLORS Disk Group Disk Management Docker Docker Hub Docker Images EC2 echo env epel fdisk -l File Types htop http_proxy I/O iftop Install Instances Kernel Linus Torvalds Linux Linux VM Logical Volume Manager LVM Mac MHA Minix module MsOffice msoutlook mySQL NetHogs open source development PATH playbook Program proxy Relative Path Repositories RHEL SCSI Shell software software installer Solaris solaris sparc sparc sudo sudoers technology Telnet terminal Ubuntu Unix VMware windows operating system x86_64 xinetd yum Archives Install MHA on RHEL6 / CentOS6 for mySQL.Scan for new SCSI drives without the need to reboot the VM – LINUX.Default ssh username for AMI – AWS EC2 Instances.Using command line kill/power off a virtual machine.
