Re: Java & OpenSSH

From: Popeanga Marian (pmarian_at_cnlo.ro)
Date: 12/04/03

  • Next message: Ben Ricker: "Re: Java & OpenSSH"
    Date: Thu, 04 Dec 2003 08:13:51 +0200
    To: Brendan Benke <benke@cs.georgetown.edu>
    
    

    Brendan Benke wrote:

    >Hello,
    >
    >I am trying to create an ssh tunnel via a java app. It's possible to get
    >the ssh process started using Runtime.exec("ssh -2 -f -N -L
    >port:host:port -l user remotehost") but being constrained to password
    >authentication I'm stuck on how to get the password to the client. I've
    >read about possibly changing readpass.h to allow stdin, but to what value?
    >Is this even the right approach? What are valid values for RP_ALLOW_STDIN?
    >
    >Any help would be greatly appreciated.
    >
    >Thanks,
    >Brendan
    >
    >
    >
    Hi,

               We also will need this approach from a C++ application.
    Without modifing the ssh to read the password from stdin we could pass
    it from a text file.
    But this way the password could be stollen. I really don't know why ssh
    does'nt support this ?
    Anyone achived to modifiy it ?

    /Marian


  • Next message: Ben Ricker: "Re: Java & OpenSSH"

    Relevant Pages

    • Re: [opensuse] BASH - Need help with ssh remote directory test?
      ... $DESTHOST as a part of the environment. ... If D.C.R. had quoted the command correctly himself, ... The real reason why only the first host is tested is, that ssh "sucks" ... away all stdin so that the read in the while-loop sees only the first ...
      (SuSE)
    • piping stdin/stdout to ssh wrapped with expect?
      ... How can I write an expect script that transparently handles the password part of an ssh command, but then hands over stdin and stdout to a parent pipe? ...
      (comp.lang.tcl)
    • Re: Redirecting stdin to a file requiring parameters
      ... sends it to the remote command's stdin, ... ssh oabbott@stagesserver \ ... tcgetattr: Invalid argument ... ls: bar: No such file or directory ...
      (comp.unix.shell)
    • Re: Pseudo-terminal and OpenSSH
      ... > supplier requires me to create an ssh connection to their firewall before ... > child process closes the "master" file descriptor and rebinds stdin, ... > the rebind of stdin i would guess too), and then it continues the program ... You don't use public key authentication? ...
      (comp.unix.programmer)
    • Re: While loop and commands that read from std input
      ... the arguments of the loop and the usage of '/dev/null' to prevent such ... difference between such commands and others that don't read std input. ... they obviously read stdin. ... While it's pretty obvious that ssh reads from stdin if you don't provide ...
      (comp.unix.shell)