I'm working on a unix server, sshing into the machine using plink or session.net (a C# module that opens an ssh connection to the server and runs commands).
Everything was fine until we restarted the machine on Monday. Now whenever I attempt to access the machine with the program it does something like bans my ip address.
vi /etc/hosts.deny but there isn't anything there, and I only have read access to it and
hosts.allow. I don't know much about unix system administration but I do need this computer to stop banning my ipaddress. (The username and passwords I'm using are correct, because when I use putty and winscp the server doesn't automatically ban my IP at first.)
Thanks for the help.
/sbin/iptablesbut it says is not allowed to execute
/sbin/iptables -L -vas root on pc
My boss ran
iptables -L -vas root and there wasn't any information on the bans there
I found that after a certain amount of time--about an hour--the ban or block on my ip address is released, but it is quickly reestablished when I plink into the machine
rsa encryption and automatic login doesn't solve the problem
Rebooting the machine does cause it to allow 1 to 4 plinks then it refuses all new connections from an ip address
$ cat /etc/*release 20110420_1358 CentOS release 5.5 (Final) $ cat /etc/hosts.deny hosts.deny This file describes the names of the hosts which are *not* allowed to use the local INET services, as decided by the '/usr/sbin/tcpd' server. The portmap line is redundant, but it is left to remind you that the new secure portmap uses hosts.deny and hosts.allow. In particular you should know that NFS uses portmap! $ which denyhosts fail2ban /usr/bin/which: no denyhosts in (/usr/kerberos/bin:/opt/454/bin:/usr/local/bin:/bin:/usr/bin:/home/adminrig/bin) /usr/bin/which: no fail2ban in (/usr/kerberos/bin:/opt/454/bin:/usr/local/bin:/bin:/usr/bin:/home/adminrig/bin) $ tail --lines=50 /var/log/auth.log /var/log/secure tail: cannot open `/var/log/auth.log' for reading: No such file or directory tail: cannot open `/var/log/secure' for reading: Permission denied