LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2011, 04:36 AM   #1
rizwan65
LQ Newbie
 
Registered: Jan 2011
Posts: 9

Rep: Reputation: 0
Problem login FTP/SSH


Hi
I have a VPS with CentOS 5 installed and Kloxo v-6.1.4 as CP

Suddenly I am not able to login FTP and SSH

On FTP client I get the error: Could not connect to server
And
On Putty
Server unexpectedly closed the network connection

I have checked the /var/log/secure and /var/log/messages

The error details pasted below:
Any suggestion will be appreciated

/var/log/secure:
Quote:
Apr 12 08:21:15 lx2 sshd[18376]: refused connect from ::ffff:my.ip (::ffff:my.ip)
Apr 12 08:21:55 lx2 webmin[20165]: Successful login as root from my.ip
Apr 12 08:23:52 lx2 sshd[28212]: refused connect from ::ffff:my.ip (::ffff:my.ip)
Apr 12 08:26:53 lx2 sshd[15446]: Received signal 15; terminating.
Apr 12 08:26:59 lx2 sshd[3591]: Server listening on :: port 22.
Apr 12 08:26:59 lx2 sshd[3591]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Apr 12 08:27:07 lx2 sshd[3715]: refused connect from ::ffff:my.ip (::ffff:my.ip)
Apr 12 08:29:08 lx2 sshd[12010]: refused connect from ::ffff:my.ip (::ffff:my.ip)
Apr 12 08:31:20 lx2 pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Apr 12 08:31:20 lx2 pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Apr 12 08:31:47 lx2 sshd[18147]: Did not receive identification string from UNKNOWN
Apr 12 08:32:00 lx2 sshd[19530]: refused connect from ::ffff:my.ip (::ffff:my.ip)
Apr 12 08:32:38 lx2 sshd[20123]: Did not receive identification string from UNKNOWN
Apr 12 08:32:39 lx2 sshd[20137]: refused connect from ::ffff:my.ip (::ffff:my.ip)
/var/log/messages
Quote:
Apr 12 08:51:20 lx2 xinetd[15596]: START: ftp pid=17448 from=127.0.0.1
Apr 12 08:51:20 lx2 pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Apr 12 08:51:20 lx2 xinetd[15596]: START: smtp pid=17450 from=127.0.0.1
Apr 12 08:51:20 lx2 pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Apr 12 08:51:20 lx2 xinetd[15596]: EXIT: ftp status=0 pid=17448 duration=0(sec)
Apr 12 08:51:20 lx2 xinetd[15596]: EXIT: smtp status=1 pid=17450 duration=0(sec)
Apr 12 08:51:39 lx2 xinetd[17832]: libwrap refused connection to ftp (libwrap=pure-ftpd) from my.ip
Apr 12 08:51:39 lx2 xinetd[17832]: FAIL: ftp libwrap from=my.ip
Apr 12 08:51:39 lx2 xinetd[15596]: START: ftp pid=17832 from=my.ip
Apr 12 08:51:39 lx2 xinetd[15596]: EXIT: ftp status=0 pid=17832 duration=0(sec)
Apr 12 08:51:45 lx2 xinetd[17922]: libwrap refused connection to ftp (libwrap=pure-ftpd) from my.ip
Apr 12 08:51:45 lx2 xinetd[17922]: FAIL: ftp libwrap from=my.ip
Apr 12 08:51:45 lx2 xinetd[15596]: START: ftp pid=17922 from=my.ip
Apr 12 08:52:05 lx2 xinetd[15596]: EXIT: ftp status=0 pid=17922 duration=20(sec)
 
Old 04-13-2011, 07:42 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Code:
Apr 12 08:51:45 lx2 xinetd[17922]: libwrap refused connection to ftp (libwrap=pure-ftpd) from my.ip
likely means your hosts.allow & hosts.deny files did not allow cxn from your machine. libwrap means tcp_wrappers http://itso.iu.edu/TCP_Wrappers is being used.
 
Old 04-13-2011, 08:15 AM   #3
rizwan65
LQ Newbie
 
Registered: Jan 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your reply
Well some on else also suggested me to check hosts.deny and I checked it and my IP and IP range is not listed there
And as I am connecting to ssh and FTP thru connection with dynamic IP and also tried to connect from different places but was not able to connect
 
Old 04-13-2011, 10:18 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Normally, hosts.deny is set to

Code:
ALL : ALL
ie deny everyone for everything everywhere, and then you open up just what's needed in hosts.allow.
Note that both ftp and ssh are compiled with libwrap .
You can check using these techniques http://www.cyberciti.biz/tips/how-to...cpwrapper.html and there's a good explanation of setting up TCP_Wrappers http://www.linuxtopia.org/online_boo...er-tcpw-xinetd.
Personally I bookmarked that entire docco.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
auto-login script for connecting to remote m/n by using telnet/ftp/ssh Uday123 Programming 5 10-12-2011 12:31 PM
[SOLVED] SSH login problem for additional users after password-less login setup uncle-c Linux - Newbie 3 02-10-2010 01:51 PM
FC6 Slow Response to SSH Login, FTP Publishing, etc. AB5NI Fedora 1 09-06-2007 04:47 PM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 01:42 AM
Only Root Login via ssh / ftp Lanmate Linux - General 2 12-23-2003 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration