Re: scripting sftp transfers

From: schranen (schranen_at_yahoo.com)
Date: 10/30/04

  • Next message: Bill Marcum: "Re: SHELL Dependency between scripts??"
    Date: Sat, 30 Oct 2004 22:23:23 +0200
    
    

    hi david,

    thanks, i havent heard of "expect" but will give it a try. the reason
    because i cant use public key auth. is that we dont have any write
    access at all on the server side. i also would prefer other ways than
    plaintext passwords :(

    greets,
    schranen

    David Kirkby wrote:
    > schranen wrote:
    >
    >> hi,
    >>
    >> sorry if i am in the wrong NG, but c.u.s looks much more appropriate
    >> than the ssh group. to the problem: i try to do file transfers over
    >> sftp via cron. the problem is the part when it comes to
    >> authentication, it wont accept any passed passwords ( sftp seems to
    >> lack the -n parameter?) unfortunately key-authentication
    >> (~/.ssh/authorized_hosts) is no option. is there a way to do it like
    >> standard ftp, which currently works at my server like this:
    >>
    >> #!/bin/sh
    >> ftp -i -n << !EOF
    >> open 10.145.0.1
    >> user ftp datafetch@localhost
    >> cd /opt/data
    >> bin
    >> gate data_latest.csv
    >> bye
    >> !EOF
    >>
    >> excuse my bad english & tia,
    >> schranen
    >
    > There is a program called 'expect' which I have never used, but belive
    > it will do what you want. I have it on my system, but don't have a man
    > page for some reason. But here is the usage info
    >
    > usage: expect [-div] [-c cmds] [[-f] cmdfile] [args]
    >
    > Why are you unable to use key-authentification? It seems the most
    > obvious way to do it. You will have to have a key with a null passphrase
    > (which is a security risk, but one i choose to take on some machines),
    > but then storing plain text passwords is just as much, if not more so of
    > a risk.
    >
    > sparrow /export/home/drkirkby % scp foobar drkirkby@webserver2:/tmp
    > foobar *********... 100%
    >
    >


  • Next message: Bill Marcum: "Re: SHELL Dependency between scripts??"

    Relevant Pages

    • Re: Paper & pencil password algorithm
      ... you wanted separate passwords for each. ... that the algorithm will generate completely different passwords. ... with a 301/302 redirect, ... The only reason to use more than the domain name is ...
      (sci.crypt)
    • Re: Password questions/problems
      ... your server as the administrator to do something on the server. ... Here are some recommendations on your user account and passwords ... Reason: User MUST change passwords within 90 days. ...
      (microsoft.public.win2000.security)
    • Safe way to list passwords on a computer
      ... Is there a relatively safe way to store a list of passwords and ... sign-up info on a computer? ... I have no reason to think that anybody ... and passwords to gain entry to various groups and email accounts. ...
      (alt.computer.security)
    • AutoComplete function wont work
      ... information - button labeled auto complete -- if you hit ... need/want to for any reason. ... >AutoComplete feature doesn't work. ... >passwords, but doesn't. ...
      (microsoft.public.windowsxp.security_admin)

    Loading