LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2011, 03:31 PM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
proftpd and pure-ftpd and ISPconfig, no login prompt


Hi group,
I'm attemping to use SFTP with either proftpd or pure-ftpd and ispconfig. I get connected by neither server requests a user name or password. I get a timeout on both. No error messages on server side. On client side I get this:
sftp -v -v -user@IP
Connecting to IP...
OpenSSH_5.2p1, OpenSSL 0.9.8n-fips 24 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to IP port Port.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: ssh_exchange_identification: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
debug1: ssh_exchange_identification: 220-You are user number 2 of 50 allowed.
debug1: ssh_exchange_identification: 220-Local time is now 13:07. Server port: Port.
debug1: ssh_exchange_identification: 220-IPv6 connections are also welcome on this server.
debug1: ssh_exchange_identification: 220 You will be disconnected after 15 minutes of inactivity.
debug1: ssh_exchange_identification: 421 Timeout - try typing a little faster next time
ssh_exchange_identification: Connection closed by remote host
Couldn't read packet: Connection reset by peer

Any ideas?

Last edited by MrUmunhum; 09-19-2011 at 04:15 PM.
 
Old 09-19-2011, 03:47 PM   #2
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
Lightbulb TLS ???

Since the server answers with

Quote:
Originally Posted by MrUmunhum View Post
debug1: ssh_exchange_identification: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
are you sure you are talking sftp (i.e. ssh), not ftps (i.e. ftp over TLS) ?

Maybe you accidentally configured FTPS to answer on the SFTP port ?

In any case, try loggin in with ssh to the same server. This must work before you can debug sftp.

Cheers, Tom.
 
Old 09-19-2011, 04:14 PM   #3
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by cheesus View Post
Since the server answers with



are you sure you are talking sftp (i.e. ssh), not ftps (i.e. ftp over TLS) ?

Maybe you accidentally configured FTPS to answer on the SFTP port ?

In any case, try loggin in with ssh to the same server. This must work before you can debug sftp.

Cheers, Tom.
Yes, I can login using ssh. This server is running ISPconfig BTW.
 
Old 09-19-2011, 04:19 PM   #4
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
did you specify a port (other than 22) ?
 
Old 09-19-2011, 05:01 PM   #5
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by cheesus View Post
did you specify a port (other than 22) ?
Have tried both port 21 and another port.
 
Old 09-20-2011, 01:49 AM   #6
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
well. it's port 22, and not 21, and not another.
actually, you should not specify a port, as you did not specify one with ssh...
/tom.
 
Old 09-20-2011, 02:01 AM   #7
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
Quote:
Originally Posted by MrUmunhum View Post

debug1: ssh_exchange_identification: 220 You will be disconnected after 15 minutes of inactivity.
debug1: ssh_exchange_identification: 421 Timeout - try typing a little faster next time
ssh_exchange_identification: Connection closed by remote host
Couldn't read packet: Connection reset by peer
Seems like a server timeout configuration problem to me.
 
Old 09-20-2011, 02:43 AM   #8
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
Post

220 and 421 are FTP status codes, not SFTP:
http://www.theegglestongroup.com/wri...rror_codes.php

Your server is not talking SFTP, whatever you think. Maybe it's FTP or FTPS.

Cheers, Tom.
 
Old 09-20-2011, 08:19 AM   #9
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
If it is not sftp, then the ftp server is not setup correctly, since it is running on port 22.

Have you tried ftp IP 22?
 
Old 09-20-2011, 08:49 AM   #10
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
Actually, I just googled proftp, and it's a FTP/FTPS server, not SFTP, so my suspicion was right from the start.
http://www.proftpd.org/features.html

NOTE: When you have ssh setup correctly, you do NOT need to setup anything else. sftp is just a part of ssh, out-of-the-box...

Cheers, Tom.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pure-ftpd and root login szymon Linux - Software 6 03-13-2012 11:28 AM
pure-ftpd 530: Login Failed wizzmaster Linux - Server 7 01-20-2009 08:04 PM
pure-ftpd login fails! i.you Linux - Software 1 12-03-2007 04:04 PM
pure ftpd running - can't login simplysi Linux - Newbie 4 03-05-2006 02:06 AM
Can't log in pure-ftpd server with IE, but can with command prompt. Yonderknight Linux - Software 16 12-01-2005 12:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:18 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
Open Source Consulting | Domain Registration