Use sftpinstead of any command you use in your .ksh script. See sftp man for help.
You can also see scpsecure copy - scp man .
EDIT
sftp mainly for interactive operations, you need to specify the host with which you want to connect:
sftp example.com
, .
, scp :
scp /path/to/localfile user@host:/path/to/dest
.
2
scp sftp ssh , . this this
- . . this this. . , ,
scp -i private-key-file /path/to/local/file user@host:/path/to/remote
sftp -oIdentityFile=private-key-file -b batch-file user@host
, expect. script :
spawn sftp -b batch-file user@host
expect "*?assword:*"
send "pasword\n"
interact
. this, this this .