Connecting To SFTP With Go
Simple and insecure way to connect to SFTP server.

Search for a command to run...
Simple and insecure way to connect to SFTP server.

No comments yet. Be the first to comment.
Most AI agents that support scheduled tasks have two sources of instruction when a cron job fires: The cron prompt — the task-specific instructions you wrote when scheduling the job The skill — a re

TL;DR Scarp draw result, host on GitHub, retrieve it like API at damacai.hongineer.com. Data Scraping I have previously shared a technique for scraping Da Ma Cai draw result. Now I finally have time t

This is a Bash script that check if the replica (slave) health status. If there is an issue, it will exist with non-zero status. This is useful when used with monitoring tools like [Monit](https://mmo

chmod is a command-line utility used to change the access permissions of file system objects such as files and directories. It allows you to control who can read, write, and execute those objects. Changing Permissions Using Octal Notation Example Usa...
chown changes the ownership of files and directories. This involves modifying the user and/or group associated with a file, determining who has access and permissions. Changing File Ownership to a Specific User Example Usage: chown user file.txt What...
My application needs to retrieve data files from remote SFTP server at regular interval. Sometime the files are not available at agreed time. So I need to monitor file availability and notify the person in charge. I wrote a Go script to check those files. Execution of this script and sending notifications is handled by Monit. If you like me to write about Monit, let me know in the comment.
HostKeyCallback: ssh.InsecureIgnoreHostKey()
HostKeyCallback is a required attribute. The callback function should return nil if host key is accepted, or error to reject it. This article provides a method for verifying host key using "known_hosts" file.
InsecureIgnoreHostKey is used for convenience sake. It trust all host keys without any sort of verification.