Re: SCP help

From: Jeff D (blue_at_ev01.net)
Date: 05/28/03

  • Next message: Hamp Rutledge: "Re: SCP help"
    Date: Wed, 28 May 2003 11:34:58 -0700
    To: "Thotapalli, Ravi" <ravi.thotapalli@eds.com>
    
    

    Thotapalli, Ravi wrote:

    >Hi I am trying to write a script using scp in which I would like to pass the
    >password to the script by means of standard input (via a file) could anyone
    >let me know if you have tried this already and if it works or not. I have
    >used the same with ftp and it works but for some reason with scp I am unable
    >to do that.
    >
    Hi,

    I've made some scripts that work sort of this way with expect. They
    just took the passwd from the keyboard instead of a file and it should
    be able to take passwds from a file as well.

    hth
    Jeff


  • Next message: Hamp Rutledge: "Re: SCP help"

    Relevant Pages

    • Re: Automating password change
      ... script to find and replace the line on all the systems. ... >> to change passwords on every month for my account and for an application ... >> to write a simple script to wrap around passwd that would run on each ... >> to a TCL library or libraries. ...
      (comp.unix.solaris)
    • Re: Automating password change
      ... script to find and replace the line on all the systems. ... >> to change passwords on every month for my account and for an application ... >> to write a simple script to wrap around passwd that would run on each ... >> to a TCL library or libraries. ...
      (comp.unix.shell)
    • RE: Using kerberos with users in passwd
      ... We have RHEL5 with krb5 and a script-generated /etc/passwd file. ... native passwd command much in our future. ... Active Directory via script. ... HP-UX there is a PAM module which uses a file pam_users.conf. ...
      (comp.protocols.kerberos)
    • Re: Setting passwords in remote systems
      ... I install expect in my Solaris system, and now I can change user´s ... spawn passwd ... Only if you tell us how you manage to connect to the remote systems! ... The basic idea is that you write an expect script that connects to the ...
      (comp.unix.shell)
    • RE: remote passwd change
      ... I suggest Create a cgi script that calls ... the passwd system command. ... be sudo the passwd command or chmod it 4777 so any user can use it. ... Remember that is the easiest way not the most secure way. ...
      (Security-Basics)