You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Roel Pieters <rp...@crossmarx.nl> on 2009/01/12 10:38:31 UTC
SFTPClient: org.apache.commons.net.MalformedServerReplyException:
Could not parse response code.
Hi,
I'm trying to use SFTPClient for the first time and ran into a problem
immediately on connect():
org.apache.commons.net.MalformedServerReplyException: Could not parse
response code.
Server Reply: SSH-1.99-OpenSSH_3.9p1
My code is:
FTPSClient client = new FTPSClient("SSL");
client.connect(host, 322);
...
Anybody got an idea?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
AW: SFTPClient: org.apache.commons.net.MalformedServerReplyException: Could not parse response code.
Posted by "Grimm, Markus" <Gr...@juris.de>.
Hi Roel,
if you want to use a non-commercial SFTP-Client, use the open-source lib "jSch"
It's a great software and works fine.
http://www.jcraft.com/jsch/index.html
Thanks
Markus
-----Ursprüngliche Nachricht-----
Von: Roel Pieters [mailto:rpieters@crossmarx.nl]
Gesendet: Dienstag, 13. Januar 2009 08:47
An: Commons Users List
Betreff: Re: SFTPClient: org.apache.commons.net.MalformedServerReplyException: Could not parse response code.
Thanks Nicolas. I will put on my thinking cap and see what's the best
way to go.
Roel
Nicolas Devès wrote:
> 2 possibilities :
> - use a SFTP java client : I think there exists some commercial java
> libs that can do that but i don't know if there are some open-source
> ones.
> - use a FTPS server : I know vsftpd can be configured with ssl but
> probably some other servers too ...
>
> Nicolas
>
> Roel Pieters a écrit :
>> I'm running a ssh server (OpenSSH) only. When I connect with a
>> command line tool (sftp on linux) it works fine. So I guess I'm not
>> going to make this work since it's not compatible. Got any ideas how
>> I can make this work from java? Should I run Apache FTP server?
>>
>> Thanks in advance for any help.
>>
>>
>>
>> Nicolas Devès wrote:
>>> Hi,
>>>
>>> Wich type of server are you trying to connect to : SFTP ou FTPS ?
>>> It is not the same protocol and I think FTPSClient can connect to
>>> FTPS servers only, not SFTP ones.
>>>
>>> Nicolas.
>>>
>>>
>>> Roel Pieters a écrit :
>>>> Hi,
>>>>
>>>> I'm trying to use SFTPClient for the first time and ran into a
>>>> problem immediately on connect():
>>>>
>>>> org.apache.commons.net.MalformedServerReplyException: Could not
>>>> parse response code.
>>>> Server Reply: SSH-1.99-OpenSSH_3.9p1
>>>>
>>>> My code is:
>>>> FTPSClient client = new FTPSClient("SSL");
>>>> client.connect(host, 322);
>>>> ...
>>>>
>>>>
>>>> Anybody got an idea?
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: user-help@commons.apache.org
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: user-help@commons.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: SFTPClient: org.apache.commons.net.MalformedServerReplyException:
Could not parse response code.
Posted by Roel Pieters <rp...@crossmarx.nl>.
Thanks Nicolas. I will put on my thinking cap and see what's the best
way to go.
Roel
Nicolas Devès wrote:
> 2 possibilities :
> - use a SFTP java client : I think there exists some commercial java
> libs that can do that but i don't know if there are some open-source
> ones.
> - use a FTPS server : I know vsftpd can be configured with ssl but
> probably some other servers too ...
>
> Nicolas
>
> Roel Pieters a écrit :
>> I'm running a ssh server (OpenSSH) only. When I connect with a
>> command line tool (sftp on linux) it works fine. So I guess I'm not
>> going to make this work since it's not compatible. Got any ideas how
>> I can make this work from java? Should I run Apache FTP server?
>>
>> Thanks in advance for any help.
>>
>>
>>
>> Nicolas Devès wrote:
>>> Hi,
>>>
>>> Wich type of server are you trying to connect to : SFTP ou FTPS ?
>>> It is not the same protocol and I think FTPSClient can connect to
>>> FTPS servers only, not SFTP ones.
>>>
>>> Nicolas.
>>>
>>>
>>> Roel Pieters a écrit :
>>>> Hi,
>>>>
>>>> I'm trying to use SFTPClient for the first time and ran into a
>>>> problem immediately on connect():
>>>>
>>>> org.apache.commons.net.MalformedServerReplyException: Could not
>>>> parse response code.
>>>> Server Reply: SSH-1.99-OpenSSH_3.9p1
>>>>
>>>> My code is:
>>>> FTPSClient client = new FTPSClient("SSL");
>>>> client.connect(host, 322);
>>>> ...
>>>>
>>>>
>>>> Anybody got an idea?
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: user-help@commons.apache.org
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: user-help@commons.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: SFTPClient: org.apache.commons.net.MalformedServerReplyException:
Could not parse response code.
Posted by Nicolas Devès <nd...@infologic.fr>.
2 possibilities :
- use a SFTP java client : I think there exists some commercial java
libs that can do that but i don't know if there are some open-source ones.
- use a FTPS server : I know vsftpd can be configured with ssl but
probably some other servers too ...
Nicolas
Roel Pieters a écrit :
> I'm running a ssh server (OpenSSH) only. When I connect with a command
> line tool (sftp on linux) it works fine. So I guess I'm not going to
> make this work since it's not compatible. Got any ideas how I can make
> this work from java? Should I run Apache FTP server?
>
> Thanks in advance for any help.
>
>
>
> Nicolas Devès wrote:
>> Hi,
>>
>> Wich type of server are you trying to connect to : SFTP ou FTPS ?
>> It is not the same protocol and I think FTPSClient can connect to
>> FTPS servers only, not SFTP ones.
>>
>> Nicolas.
>>
>>
>> Roel Pieters a écrit :
>>> Hi,
>>>
>>> I'm trying to use SFTPClient for the first time and ran into a
>>> problem immediately on connect():
>>>
>>> org.apache.commons.net.MalformedServerReplyException: Could not
>>> parse response code.
>>> Server Reply: SSH-1.99-OpenSSH_3.9p1
>>>
>>> My code is:
>>> FTPSClient client = new FTPSClient("SSL");
>>> client.connect(host, 322);
>>> ...
>>>
>>>
>>> Anybody got an idea?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: user-help@commons.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: SFTPClient: org.apache.commons.net.MalformedServerReplyException:
Could not parse response code.
Posted by Roel Pieters <rp...@crossmarx.nl>.
I'm running a ssh server (OpenSSH) only. When I connect with a command
line tool (sftp on linux) it works fine. So I guess I'm not going to
make this work since it's not compatible. Got any ideas how I can make
this work from java? Should I run Apache FTP server?
Thanks in advance for any help.
Nicolas Devès wrote:
> Hi,
>
> Wich type of server are you trying to connect to : SFTP ou FTPS ?
> It is not the same protocol and I think FTPSClient can connect to FTPS
> servers only, not SFTP ones.
>
> Nicolas.
>
>
> Roel Pieters a écrit :
>> Hi,
>>
>> I'm trying to use SFTPClient for the first time and ran into a
>> problem immediately on connect():
>>
>> org.apache.commons.net.MalformedServerReplyException: Could not parse
>> response code.
>> Server Reply: SSH-1.99-OpenSSH_3.9p1
>>
>> My code is:
>> FTPSClient client = new FTPSClient("SSL");
>> client.connect(host, 322);
>> ...
>>
>>
>> Anybody got an idea?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: SFTPClient: org.apache.commons.net.MalformedServerReplyException:
Could not parse response code.
Posted by Nicolas Devès <nd...@infologic.fr>.
Hi,
Wich type of server are you trying to connect to : SFTP ou FTPS ?
It is not the same protocol and I think FTPSClient can connect to FTPS
servers only, not SFTP ones.
Nicolas.
Roel Pieters a écrit :
> Hi,
>
> I'm trying to use SFTPClient for the first time and ran into a problem
> immediately on connect():
>
> org.apache.commons.net.MalformedServerReplyException: Could not parse
> response code.
> Server Reply: SSH-1.99-OpenSSH_3.9p1
>
> My code is:
> FTPSClient client = new FTPSClient("SSL");
> client.connect(host, 322);
> ...
>
>
> Anybody got an idea?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org