File transfer using SFTP
In most of the organization SMB port (445) which is used for file sharing is disable for security reasons. But file sharing over the network is one of the important factor withing infrastructure. (Ex: DR Sync, Remote file backup Etc.) In this blog we will see how to transfer files from Local path to remote server over SFTP. Secure File Transfer Protocol ( SFTP ) is a secure version of File Transfer Protocol (FTP), which facilitates data access and data transfer over a Secure Shell (SSH) data stream. Ensure “WinSCP” is installed on system from where file will get copied. Please find below script which established connection to destination file server. #Script Name : script.txt # Connect to SFTP server using a password open sftp://<Username>:<Passowrd>@<IPAddress>/ -hostkey="<SSL Thumbprint>" # Ex: open sftp://Devendra:Techni@123@10.256.85.45/-hostkey="ssh-ed4587 256ejfh5874HRJFO542545dgdgjsdkkd45588RALE555FHKA=" # Up...