no tty present and no ask pass program

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I try to run the open source software "x2go". It uses sshfs,ssh, nx.
The test is with SuSE11.2 as client, 11.3 as server.
After some time the system writes "no tty present and no ask pass program

I think this message is coming from the server.

I have read the man of ssh-askpass, ssh-agent, ssh-add, but i do not know
what program must be given to SSH_ASKPASS. (My aplication uses Tcl/Tk for
GUI and Cobol for background working).

My question is what program should be set to SSH_ASKPASS ?


Re: no tty present and no ask pass program

Quoted text here. Click to load it

Any program or script that, when called, returns the password on STDOUT,
if I understand correctly. From the ssh manpage on this machine
(OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007):

     SSH_ASKPASS           If ssh needs a passphrase, it will read the
                           passphrase from the current terminal if it was run
                           from a terminal.  If ssh does not have a terminal
                           associated with it but DISPLAY and SSH_ASKPASS are
                           set, it will execute the program specified by
                           SSH_ASKPASS and open an X11 window to read the
                           passphrase.  This is particularly useful when call-
                           ing ssh from a .xsession or related script.  (Note
                           that on some machines it may be necessary to redi-
                           rect the input from /dev/null to make this work.)

I'm sure that if I'm wrong, someone will provide a more correct answer.

No pixels were harmed in the generation of this message but billions
of electrons were rudely shoved around.
                               -- from Len Anderson AF6AY

Site Timeline