You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Jean-Max Reymond <jm...@free.fr> on 2015/06/22 14:22:09 UTC

file-user-manager configuration and sftp

hi,
I am testing ftpserver and I am not able to connect via sftp protocol.
I am using
All is fine with
lftp -d  -p 2121  ftp://localhost
lftp localhost:~> user admin
Password:
lftp admin@localhost:~> ls
---- Connecting to localhost (127.0.0.1) port 2121
<--- 220 Service ready for new user.
---> FEAT
<--- 530 Access denied.
---> AUTH TLS
<--- 234 Command AUTH okay; starting TLS connection.
---> USER admin
**** gnutls_handshake: The Diffie-Hellman prime sent by the server is 
not acceptable (not long enough).
---- Closing control socket
---- Connecting to localhost (127.0.0.1) port 2121
<--- 220 Service ready for new user.
---> FEAT
<--- 530 Access denied.
---> USER admin
<--- 331 User name okay, need password for admin.
---> PASS XXXX
<--- 230 User logged in, proceed.
---> FEAT
<--- 211-Extensions supported
<---  SIZE
<---  MDTM
<---  REST STREAM
<---  LANG en;zh-tw;ja;is
<---  MLST Size;Modify;Type;Perm
<---  AUTH SSL
<---  AUTH TLS
<---  MODE Z
<---  UTF8
<---  TVFS
<---  MD5
<---  MMD5
<---  MFMT
<--- 211 End
---> PWD
<--- 257 "/" is current directory.
---> LANG
<--- 200 Command LANG okay.
---> OPTS UTF8 ON
<--- 200 Command OPTS okay.
---> OPTS MLST Size;Modify;Type;Perm
<--- 200 Command OPTS okay.
---> PORT 127,0,0,1,215,0
<--- 200 Command PORT okay.
---> LIST
<--- 150 File status okay; about to open data connection.
---- Accepted data connection from (127.0.0.1) port 38550
---- Got EOF on data connection
---- Closing data socket
-rw-------   1 user group           28 Jun 25  2011 README.txt
<--- 226 Closing data connection.

but no success with sftp

lftp -d  -p 2121  sftp://localhost
lftp localhost:~> user admin
Mot de passe :
lftp admin@localhost:~> ls
---- Exécution du programme de connexion (ssh -a -x -s -l admin -p 2121 
localhost sftp)
---> sending a packet, length=5, type=1(INIT), id=0

and in the log of the ftpserver, I have

[ INFO] 2015-06-22 14:12:23,604 [] [127.0.0.1] CREATED
[ INFO] 2015-06-22 14:12:23,605 [admin] [127.0.0.1] OPENED
[ INFO] 2015-06-22 14:12:23,607 [admin] [127.0.0.1] RECEIVED: 
SSH-2.0-OpenSSH_6.7p1 Ubuntu-5ubuntu1
[ INFO] 2015-06-22 14:12:23,608 [] [127.0.0.1] SENT: 220 Service ready 
for new user.
[ INFO] 2015-06-22 14:12:23,609 [admin] [127.0.0.1] SENT: 530 Access denied.

I am using standard configuration files
res/conf/ftpd.xml  res/conf/users.properties

any tips ?

-- 
Jean-Max Reymond
Éruption de l'Etna: http://jmreymond.free.fr/Etna2002

Re: file-user-manager configuration and sftp

Posted by Jean-Max Reymond <jm...@free.fr>.
Sorry. I was confused by "Implicit/explicit SSL/TLS support." in the 
Features page and it is my fault, not reading correctly.
thanks a lot,


Le 23/06/2015 10:26, Frank a écrit :
> Hi Jean-Max,
>
> Try ftps instead of sftp; sftp is an extension of ssh for file transfer - so something else - while ftps is ftp over ssl and is supported by ftpserver.
>


-- 
Jean-Max Reymond
Éruption de l'Etna: http://jmreymond.free.fr/Etna2002

Re: file-user-manager configuration and sftp

Posted by John Hartnup <jo...@gmail.com>.
Yes, as Franks says -- FTP/TLS (sometimes known as FTPS) is a completely
different protocol from SFTP.

Mine FtpServer is an FTPS server, not an SFTP server.

On Tue, Jun 23, 2015 at 9:27 AM Frank <kl...@hotmail.com> wrote:

> Hi Jean-Max,
>
> Try ftps instead of sftp; sftp is an extension of ssh for file transfer -
> so something else - while ftps is ftp over ssl and is supported by
> ftpserver.
>
> Cheers,
>
> Frank
>
> > Date: Mon, 22 Jun 2015 14:22:09 +0200
> > From: jmreymond@free.fr
> > To: ftpserver-users@mina.apache.org
> > Subject: file-user-manager configuration and sftp
> >
> > hi,
> > I am testing ftpserver and I am not able to connect via sftp protocol.
> > I am using
> > All is fine with
> > lftp -d  -p 2121  ftp://localhost
> > lftp localhost:~> user admin
> > Password:
> > lftp admin@localhost:~> ls
> > ---- Connecting to localhost (127.0.0.1) port 2121
> > <--- 220 Service ready for new user.
> > ---> FEAT
> > <--- 530 Access denied.
> > ---> AUTH TLS
> > <--- 234 Command AUTH okay; starting TLS connection.
> > ---> USER admin
> > **** gnutls_handshake: The Diffie-Hellman prime sent by the server is
> > not acceptable (not long enough).
> > ---- Closing control socket
> > ---- Connecting to localhost (127.0.0.1) port 2121
> > <--- 220 Service ready for new user.
> > ---> FEAT
> > <--- 530 Access denied.
> > ---> USER admin
> > <--- 331 User name okay, need password for admin.
> > ---> PASS XXXX
> > <--- 230 User logged in, proceed.
> > ---> FEAT
> > <--- 211-Extensions supported
> > <---  SIZE
> > <---  MDTM
> > <---  REST STREAM
> > <---  LANG en;zh-tw;ja;is
> > <---  MLST Size;Modify;Type;Perm
> > <---  AUTH SSL
> > <---  AUTH TLS
> > <---  MODE Z
> > <---  UTF8
> > <---  TVFS
> > <---  MD5
> > <---  MMD5
> > <---  MFMT
> > <--- 211 End
> > ---> PWD
> > <--- 257 "/" is current directory.
> > ---> LANG
> > <--- 200 Command LANG okay.
> > ---> OPTS UTF8 ON
> > <--- 200 Command OPTS okay.
> > ---> OPTS MLST Size;Modify;Type;Perm
> > <--- 200 Command OPTS okay.
> > ---> PORT 127,0,0,1,215,0
> > <--- 200 Command PORT okay.
> > ---> LIST
> > <--- 150 File status okay; about to open data connection.
> > ---- Accepted data connection from (127.0.0.1) port 38550
> > ---- Got EOF on data connection
> > ---- Closing data socket
> > -rw-------   1 user group           28 Jun 25  2011 README.txt
> > <--- 226 Closing data connection.
> >
> > but no success with sftp
> >
> > lftp -d  -p 2121  sftp://localhost
> > lftp localhost:~> user admin
> > Mot de passe :
> > lftp admin@localhost:~> ls
> > ---- Exécution du programme de connexion (ssh -a -x -s -l admin -p 2121
> > localhost sftp)
> > ---> sending a packet, length=5, type=1(INIT), id=0
> >
> > and in the log of the ftpserver, I have
> >
> > [ INFO] 2015-06-22 14:12:23,604 [] [127.0.0.1] CREATED
> > [ INFO] 2015-06-22 14:12:23,605 [admin] [127.0.0.1] OPENED
> > [ INFO] 2015-06-22 14:12:23,607 [admin] [127.0.0.1] RECEIVED:
> > SSH-2.0-OpenSSH_6.7p1 Ubuntu-5ubuntu1
> > [ INFO] 2015-06-22 14:12:23,608 [] [127.0.0.1] SENT: 220 Service ready
> > for new user.
> > [ INFO] 2015-06-22 14:12:23,609 [admin] [127.0.0.1] SENT: 530 Access
> denied.
> >
> > I am using standard configuration files
> > res/conf/ftpd.xml  res/conf/users.properties
> >
> > any tips ?
> >
> > --
> > Jean-Max Reymond
> > Éruption de l'Etna: http://jmreymond.free.fr/Etna2002
>

RE: file-user-manager configuration and sftp

Posted by Frank <kl...@hotmail.com>.
Hi Jean-Max,

Try ftps instead of sftp; sftp is an extension of ssh for file transfer - so something else - while ftps is ftp over ssl and is supported by ftpserver.

Cheers,

Frank

> Date: Mon, 22 Jun 2015 14:22:09 +0200
> From: jmreymond@free.fr
> To: ftpserver-users@mina.apache.org
> Subject: file-user-manager configuration and sftp
> 
> hi,
> I am testing ftpserver and I am not able to connect via sftp protocol.
> I am using
> All is fine with
> lftp -d  -p 2121  ftp://localhost
> lftp localhost:~> user admin
> Password:
> lftp admin@localhost:~> ls
> ---- Connecting to localhost (127.0.0.1) port 2121
> <--- 220 Service ready for new user.
> ---> FEAT
> <--- 530 Access denied.
> ---> AUTH TLS
> <--- 234 Command AUTH okay; starting TLS connection.
> ---> USER admin
> **** gnutls_handshake: The Diffie-Hellman prime sent by the server is 
> not acceptable (not long enough).
> ---- Closing control socket
> ---- Connecting to localhost (127.0.0.1) port 2121
> <--- 220 Service ready for new user.
> ---> FEAT
> <--- 530 Access denied.
> ---> USER admin
> <--- 331 User name okay, need password for admin.
> ---> PASS XXXX
> <--- 230 User logged in, proceed.
> ---> FEAT
> <--- 211-Extensions supported
> <---  SIZE
> <---  MDTM
> <---  REST STREAM
> <---  LANG en;zh-tw;ja;is
> <---  MLST Size;Modify;Type;Perm
> <---  AUTH SSL
> <---  AUTH TLS
> <---  MODE Z
> <---  UTF8
> <---  TVFS
> <---  MD5
> <---  MMD5
> <---  MFMT
> <--- 211 End
> ---> PWD
> <--- 257 "/" is current directory.
> ---> LANG
> <--- 200 Command LANG okay.
> ---> OPTS UTF8 ON
> <--- 200 Command OPTS okay.
> ---> OPTS MLST Size;Modify;Type;Perm
> <--- 200 Command OPTS okay.
> ---> PORT 127,0,0,1,215,0
> <--- 200 Command PORT okay.
> ---> LIST
> <--- 150 File status okay; about to open data connection.
> ---- Accepted data connection from (127.0.0.1) port 38550
> ---- Got EOF on data connection
> ---- Closing data socket
> -rw-------   1 user group           28 Jun 25  2011 README.txt
> <--- 226 Closing data connection.
> 
> but no success with sftp
> 
> lftp -d  -p 2121  sftp://localhost
> lftp localhost:~> user admin
> Mot de passe :
> lftp admin@localhost:~> ls
> ---- Exécution du programme de connexion (ssh -a -x -s -l admin -p 2121 
> localhost sftp)
> ---> sending a packet, length=5, type=1(INIT), id=0
> 
> and in the log of the ftpserver, I have
> 
> [ INFO] 2015-06-22 14:12:23,604 [] [127.0.0.1] CREATED
> [ INFO] 2015-06-22 14:12:23,605 [admin] [127.0.0.1] OPENED
> [ INFO] 2015-06-22 14:12:23,607 [admin] [127.0.0.1] RECEIVED: 
> SSH-2.0-OpenSSH_6.7p1 Ubuntu-5ubuntu1
> [ INFO] 2015-06-22 14:12:23,608 [] [127.0.0.1] SENT: 220 Service ready 
> for new user.
> [ INFO] 2015-06-22 14:12:23,609 [admin] [127.0.0.1] SENT: 530 Access denied.
> 
> I am using standard configuration files
> res/conf/ftpd.xml  res/conf/users.properties
> 
> any tips ?
> 
> -- 
> Jean-Max Reymond
> Éruption de l'Etna: http://jmreymond.free.fr/Etna2002