Posts Under 'linux'

How to block ip address on Fedora/Linux using iptables?

Today, I was looking at fedora server logs and discovered that lots of failed automated ssh hacking attempts on various ports. So, to block these IP addresses, googled and found lots of resources on this topic. I thought to keep a log about this. I already did some configuration with hosts.allow and hosts.deny which you […]

Read more »


Webmin – a web-based interface for system administration for Unix

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing, manage Mysql database, configure PHP and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely. […]

Read more »


Make sshd listen to a specific address

In file /etc/ssh/sshd_config, use ListenAddress 192.168.0.1 to make sshd listen to only that address.

Read more »


sshd: refused connect from ::ffff

Hello friends, I faced this problem before 2 days. I did some research and found on google that, to solve this problem you have to see hosts.deny and hosts.allow files under /etc/ directory. So you have to add your ISP or Local ip address in hosts.allow files as sshd sshd1 sshd2 : ipaddress : ALLOW […]

Read more »


Setting cron job of java program in Unix

java -classpath dir1:dir2:dirofclasses package.classname If you are using mysql connection then you have to set mysql connector classpath also in command eg: java -classpath dir1:dir2:mysqlconnectorpath:dirofclasses package.classname

Read more »