Re: Noninteractive password inputting

From: Alex (alexrainy_at_dontbotherme.com)
Date: 11/11/03

  • Next message: Thund3rstruck: "Re: Might've been rooted. Help"
    Date: 10 Nov 2003 23:22:25 GMT
    
    

    Michael Heiming <michael+USENET@www.heiming.de> wrote in
    news:3qinob.g45.ln@news.heiming.de:

    > The easiest, run the script as root.
    > ;)

                I don't want to do that :(
    > Next way, setup key-authentication and login as 'ssh
    > otheruser@localhost'.
                
                ......that's not a good idea
    > Or use 'expect' as you already found out, there is lots of info coming
    > with the packages:
    >
    > $ man -k expect
    > autoexpect (1) - generate an Expect script from watching a
    > session expect (1) - programmed dialogue with
    > interactive programs, Version 5 expectk (1) - Expect
    > with Tk support libexpect (3) - programmed dialogue with
    > interactive programs - C functions
    >

         Ya, maybe the 'expect' is the best way without coding out a program.

    Thx.


  • Next message: Thund3rstruck: "Re: Might've been rooted. Help"

    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: broken ssh
      ... The password works to login to the system directly. ... I've tried loogging in from the command line: "ssh ... Make sure that your home router port forwards port 22 ... Now try to ssh to the target computer locally (i.e., from itself, while ...
      (Ubuntu)
    • 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)
    • Re: Authentication with SSH using public keys
      ... I use ssh to login remotely. ... there looks odd, or different, from other remote hosts I do this on. ... The permissions on the machine where it doesn't work: ...
      (freebsd-questions)