Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Module Problems

by waiterm (Acolyte)
on Jan 26, 2004 at 20:17 UTC ( [id://324255]=note: print w/replies, xml ) Need Help??


in reply to Re: Module Problems
in thread Module Problems

I'm basically aiming to automate the SCP process without having the need for someone to enter a pssword. I run a lot of automated programs and at the moment I'm having to SCP them all manually to the remote server.

It's basically so that if I go away or am busy (such as next week to Florida!!) Then I simply want my server to run the updates automatically in my absense.

Replies are listed 'Best First'.
Re: Re: Re: Module Problems
by Limbic~Region (Chancellor) on Jan 26, 2004 at 20:31 UTC
    waiterm,
    In my previous place of employment, I wrote numerous shell scripts that do what you want without Expect or Expect. I accomplished this by using key based authentication instead of passwords. I am sure the same would be possible with a batch file. If you need help creating and configuring key based authentication, you can look at http://www.openssh.org or reply here and I will post step by step instructions.

    Cheers - L~R

      If I'm honest I could probably do with a step-by-step guide, as you can probably tell my programming skills aren't that great yet. I greatly appreciate any help you can give me!!
        waiterm,
        I am assuming the Win32 machine is the client. You do not indicate what the server side is or what implementation of SSH (e.g. OpenSSH) it is using. To provide step by step instructions, I would need that information - and keep in mind this is not a Perl solution.

        If you are using PuTTY for your client, these instructions should get you started. The basic idea is to generate keys on the client and then stick them in the authorized file on the server, but how to do that varies depending on your specific situation.

        Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://324255]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found