sftp/scp non-interactive script

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf sftp/scp non-interactive script

  • Creator
    Topic
  • #48450
    David Savage
    Participant

    I am trying to connect to a server over SSH2.  Does anyone have an example of a tcl or shell script that will allow for automated secure cp or ftp to a server with dsa key passphrase and server login supplied.

    Thanks Dave

Viewing 2 reply threads
  • Author
    Replies
    • #58666
      Bakha Nurzhanov
      Participant

      Hi David – take a look at attached script. It will go into Write TPS of the UPOC protocol. Drop me a message if you need further clarifications.

      Here is a snippet of the NetConfig:

         { PROTOCOL {

             { READINTERVAL 5 }

             { READTPS {

                 { ARGS {} }

                 { PROCS {} }

             } }

             { TYPE upoc }

             { WRITETPS {

                 { ARGS {{{SFTPSERVER name_or_ip_address} {SFTPUSER user_name} {SFTPPWD secret_password} {EXPECTSN mc_expect}}} }

                 { PROCS upoc_sftp_out }

             } }

         } }

    • #58667

      Quote:

      It will go into Write TPS of the UPOC protocol.

      What exactly does that mean?

      -- Max Drown (Infor)

    • #58668
      Bakha Nurzhanov
      Participant

      Max Drown wrote:

      Quote:

      It will go into Write TPS of the UPOC protocol.

      What exactly does that mean?


      Max – drop me an e-mail and we can chat.

      Bakha Nurzhanov

      Valley Medical Center

      bakha@valleymed.org

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10