commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roel Pieters <rpiet...@crossmarx.nl>
Subject Re: SFTPClient: org.apache.commons.net.MalformedServerReplyException: Could not parse response code.
Date Mon, 12 Jan 2009 13:50:35 GMT
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


Mime
View raw message