Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › sftp/scp non-interactive script
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
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 }
It will go into Write TPS of the UPOC protocol.
What exactly does that mean?
-- Max Drown (Infor)
Max – drop me an e-mail and we can chat.
Bakha Nurzhanov
Valley Medical Center
bakha@valleymed.org