Question on "ssh" login

From: sunil (sunil_narkhede_at_yahoo.com)
Date: 08/23/04

  • Next message: Zev Steinhardt: "Perl Mime::Lite question. Help please?"
    Date: 23 Aug 2004 06:57:58 -0700
    
    

    Gentle People,

    I want to use ssh to login. I want to hard code the password. I tried
    to use following line

    system ("ssh user@hostname <<INPW
    password_goes_here
    INPW
    ");

    I get following error message.
    Pseudo-terminal will not be allocated because stdin is not a terminal.
    And program will ask to type password manually.

    Any help will be greatly appreciated.
    Regards


  • Next message: Zev Steinhardt: "Perl Mime::Lite question. Help please?"

    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)