I have a file in my remote server which needs to be transferred to sftp box. I do have the password, port and username for sftp box.
Please share me a shell script programming to understand how this can be done.
I have a file in my remote server which needs to be transferred to sftp box. I do have the password, port and username for sftp box.
Please share me a shell script programming to understand how this can be done.
you can go for passwordless authentication between remote server and sftp box via sharing the public key . OR , you can use scp filename sftpuser@sftphost:/$destination_Path