• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS/RHEL 5

How to run ssh on multiple ports

by admin

Question: How to confgure ssh to run on 2 ports i.e. 22 and 2222. There may be requirements as such above in some environments to run ssh on multiple ports. Well this can be achieved by modifying the /etc/ssh/sshd_config configuration file. The stpes are outlined as below: 1. Edit the sshd configuration file /etc/ssh/sshd_config # […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6, Linux

Bind to port 22 on 0.0.0.0 failed: address already in use – error while starting sshd service CentOS/RHEL

by admin

The Problem Following messages are logged when restarting sshd service in a CentOS/RHEL 5/6 system. Dec 14 00:15:19 geeklab sshd[9182]: Received signal 15; terminating. Dec 14 00:15:19 geeklab sshd[9274]: Server listening on :: port 22. Dec 14 00:15:19 geeklab sshd[9274]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. The Solution When […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6, Linux

“error: Bind to port 2222 on 0.0.0.0 failed: Permission denied” – error while starting sshd service on CentOS/RHEL

by admin

The Problem On CentOS/RHEL, the OpenSSH SSH Daemon (sshd) utilizes port 22 for incoming connection requests from remote OpenSSH SSH (ssh) and Secure File Transfer (sftp) clients. In some cases, however, System Administrators prefer to utilize separate ports to service ssh and sftp activity. In One such case, system administrator is facing below error while […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6, CentOS/RHEL 7, CentOS/RHEL 8, Linux

How to Automatically Run ntpdate When Starting NTPD in CentOS/RHEL 5

by admin

Question: How to Automatically Run ntpdate When Starting NTPD in CentOS/RHEL 5? 1. By default the file /etc/ntp/step-tickers is empty, to sync the time with ntpdate during the start of ntpd, we need to enter the ip addresses of your time server: # cat /etc/ntp.conf | grep server server 192.168.X.1 server 192.168.Y.2 # cat /etc/ntp/step-tickers […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, Linux

Set Password for Single User Mode on Linux (CentOS/RHEL)

by admin

Setting Password for Single User Mode in Linux adds security to Linux boxes. If someone accesses your server physically & reboots the server and then tries to change the root password from single-user mode. In that case, if the password is set on single-user mode, one has to first enter the root password, then only […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6

“Server refused to allocate pty” – Unable to login to CentOS/RHEL

by admin

The Problem On an CentOS/RHEL 6 server, all logins started to fail to the system with the following errors: Server refused to allocate pty /etc/profile: line 48: /dev/null: Permission denied /etc/profile: line 76: /dev/n ull: Permission denied /etc/profile: line 76: /dev/null: Permission denied /etc/pr ofile: line 76: /dev/null: Permission denied /etc/profile: line 76: /dev/null: Permission […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6

“Connection reset by peer” – error while ssh into a CentOS/RHEL system with a specific user only

by admin

The Problem When trying to open an ssh connection to a system with a specific account, it failed with ‘Connection reset by peer’. Other users can successfully connect with ssh to this system. Below is an example showing the failed login to node [NODE2] with the account ‘oracle’. [oracle@NODE1]$ ssh oracle@[NODE2] oracle@[NODE2]’s password: Read from […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6, CentOS/RHEL 7

How to Configure NFS Services (server-side) to Run on Static Ports as an Alternative CentOS/RHEL 5 and 6

by admin

By default, some NFS services (server_side) use well-known ports but some normally just use random ports. The use of random ports does not work so well with strict firewall rules blocking random yet unknown ports. So, sometimes it is best to manually alter or specify static ports for NFS services (server_side) to use. This post […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6

FATAL: Error inserting rds_rdma

by admin

The Problem RDS module is not loading after rebooting the nodes of the cluster. Therefore, the CRS cannot run on any of the nodes. When trying to load the module the following errors are displayed: # modprobe rds_rdma FATAL: Error inserting rds_rdma /lib/modules/2.6.18-274.18.1.0.1.el5/updates/net/rds/rds_rdma.ko): Unknown symbol in module, or unknown parameter (see dmesg) dmesg output shows […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6, oracle

Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)

by admin

The Problem Cannot reliably get networking to start on a server when using DHCP: # sudo /etc/init.d/network restart Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See “systemctl status network.service” and “journalctl -xe” for details. [FAILED] # journalctl -xe Nov 29 18:57:42 hostaname.domain.com dhclient[37653]: exiting. Nov 29 […]

Filed Under: CentOS/RHEL, CentOS/RHEL 5, CentOS/RHEL 6, CentOS/RHEL 7, CentOS/RHEL 8, Linux

Next Page »

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright