Problems running a program over non-interactive SSH connection.

shalofin_at_gmail.com
Date: 07/22/05

  • Next message: Richard E. Silverman: "Re: Problems running a program over non-interactive SSH connection."
    Date: 22 Jul 2005 12:05:58 -0700
    
    

    I'm having a problem executing a program over SSH using plink, but it
    will work if I manually login then run the same program. I've looked
    at everything I can think of, but don't know if there is a setting
    somewhere to allow programs like plink.exe to mimic an interactive SSH
    login. I'm currently reading through Oreilly's SSH book but was hoping
    someone knew of a quick fix. :)

    The program I am using is a custom admin client for RSA's SecurID,
    which has to run on the SecurID server (a limitation of their SDK). I
    have used both plink and a Perl script to run the program over SSH,
    both failed.

    The idea behind using a script was to mimic an interactive login,
    hoping that the remote side wouldn't know the difference. Either this
    isn't possible or I'm missing something.

    Does anyone know if it is possible to mimic an interactive shell via
    plink.exe?

    The client side is running Windows, with plink.exe, ActivePerl (with
    Net-SSH-W32Perl installed) and the server is running Solaris 8 with
    OpenSSH.

    I've run truss on the server side to look for problems but have not
    been able to locate anything (although I don't claim to understand all
    of the output).

    Thanks for any help,

    Wayne


  • Next message: Richard E. Silverman: "Re: Problems running a program over non-interactive SSH connection."

    Relevant Pages

    • Re: SSH login automation, get stuck at the last step.
      ... The ssh server that I am copying the public key to is not a typical ... The user "root" to login this box can not access the ... puts stderr "EXP username requested and sent " ...
      (comp.lang.tcl)
    • SUMMARY: how to set correct path?
      ... ven if we login with ssh. ... For BASH login shell, place the system wide ENV variables, such as PATH, ... You can set Use_login in the sshd_config to yes and restart sshd. ...
      (SunManagers)
    • Re: ssh brute force attacks
      ... What you are most likely seeing are SSH worms on hacked PCs that scan ... -- use a separate username/password for SSH access, ... -- enforce more complex usernames & passwords for all users on the server ... Instead require the user to login as a non-root user first, ...
      (comp.os.linux.misc)
    • Public Authentication Problem on Batch Job using SCP2 when SSH Client Reboot
      ... to a SSH server, HOST2. ... for secure ftp login. ... The login ID is a local user account ... we found that scp2 run failed every time the SSH client ...
      (comp.security.ssh)
    • Re: Any Way to Defeat Cracker Login Attempts? (OS X)
      ... In article <080320061657581395%darrell.usenet5@xxxxxxxxxxxxx>, Darrell ... that will work provided none of the Macs in your SSH session ... are protected by login passwords. ...
      (comp.sys.mac.system)