unable to use SSH_ASKPASS

From: Popeanga Marian (pmarian_at_cnlo.ro)
Date: 08/05/05

  • Next message: Hespelt, Steve (Exchange): "sshd dropping connection after authentication succeeds (4.1p1)"
    Date: Fri, 5 Aug 2005 09:50:47 +0300 (EEST)
    To: secureshell@securityfocus.com
    
    

        Hi guys,

        According to ssh manual:

     "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
     particu-
                   larly useful when calling ssh from a .xsession or related
                   script. (Note that on some machines it may be necessary to
                   redirect the input from /dev/null to make this work.)"
    ( Version OpenSSH_4.1p1, OpenSSL 0.9.7g )

        starting ssh from a shell script and setting SSH_ASKPASS and DISPLAY
     should involve executing the $SSH_ASKPASS. Till now i wasn't able to do
     it.
        I use the following script to test:

     export DISPLAY=localhost:0
     export SSH_ASKPASS="/opt/kde/bin/cvsaskpass"
     ssh marian@localhost

        Any help is welcomed.

     Thanks,
     Marian


  • Next message: Hespelt, Steve (Exchange): "sshd dropping connection after authentication succeeds (4.1p1)"

    Relevant Pages

    • Re: pppd pty equivilent in FBSD
      ... I let pppd manage retries & setting routes. ... >I wouldn't personally recommend vpn over ssh for anyone either, ... I'm the sole bsd user at my company, and the ppp over ssh ... >Actual bash script I call: ...
      (freebsd-net)
    • Re: [kde-linux] Sessions names
      ... ssh 192.168.2.80??? ... You can write a wrapper script that would start ssh to some ip and rename the ... konsole session dynamically. ... dcop call to konsole you need to know the pid of konsole. ...
      (KDE)
    • Re: Hacker activity?
      ... >login to a server, most as root but some are attempts to login to ... >telnet, all come from the same remote server, and all fail. ... >getting some odd cgi calls to a script on a secure ssl server. ... Make sure root cannot login to your system via ssh. ...
      (freebsd-questions)
    • Re: Learning Expect - Some help with a straightforward script + advice on cleaner ways to do thi
      ...  This is the first script of a few to go across multiple servers, but basically I have a very, very, very outdated hosts file that needs to be updated, as well as servers whose ... This script is used to ensure servers are up and running. ... # Need a way to check for an ssh time out/hang on connect ... # - Checking if the ssh session is connecting and then getting term'd ...
      (comp.lang.tcl)
    • Re: Ive been hacked...tips for a postmortem?
      ... > for keywords, like the email address in the `mailme' script, see if it ... www.openssh.com) That SSH1 is not to be used for anything other than ... SSH at all. ... an SSH vulnerability is to place in your startup scripts (usually rc.M, ...
      (comp.os.linux.security)