[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSH via java secure shell


On Wednesday 09 April 2014 11:58:51 Aartih wrote:
> Andreas Schneider <asn@...> writes:
> > On Tuesday 08 April 2014 14:53:35 aarthit 2014 wrote:
> > > Hi,
> > > 
> > > We are using libSSH0.6.3 in our product and when we do the following
> > > test
> > > we see that the SSH shell hangs and we are not able to enter any
> > > commands
> > > in it.
> > > 
> > > We ran the samplesshd-cb.c file that is present in the example, we try
> > > to
> > > establish the SSH from a Java secure Shell client , we could see that
> > > the
> > > client asks for the username and password and we could see on the server
> > > terminal that the session is established , but the established SSH
> > > session
> > > does not accept any commands , it just freezes .
> > 
> > This is not a fully featured ssh server. It just shows how to do things.
> > 
> > Maybe it works with
> > 
> > http://git.libssh.org/projects/libssh.git/tree/examples/ssh_server_fork.c
> > 
> > but I wouldn't guarantee it ...
> > 
> > 	-- andreas
> 
> I also tried with the above sample program and that also didnt help me. We
> have fully integrated server side interface code in which SSH and SFTP is
> working normally when connected via openssh, but establishment with the help
> of Java Secure Shell is not happening. Do you have any reference which
> could help us if libssh is compatible with such java based/GUI based
> clients other than JSCH.

You need to start debugging what's wrong and were it fails. Either the Java 
application does something wrong or we are not graceful enough.

I would start with a readable network trace. Take a look at the pcap API ...


	-- andreas

-- 
Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx


References:
SSH via java secure shellaarthit 2014 <aarthit2014@xxxxxxxxx>
Re: SSH via java secure shellAndreas Schneider <asn@xxxxxxxxxxxxxx>
Re: SSH via java secure shellAartih <aarthit2014@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org