Let’s modify the 3-minute guide for creating Linux shared folder using Samba software, to allow users access public folders without prompting for password but enforce authentication for non-public folders.
This open source software, sshpass, only does one simple thing, i.e. tricks the SSH client to believe that the user is performing interactive password authentication.
For security’s sake, you should use public-key cryptography authentication method to automate SSH login without password. But, what can you do if the SSH server of a router modem doesn’t allow user add or install the public key?
How to automate SSH login using password, if the destination server (e.g. home router modem) doesn’t support public-key cryptography authentication method?
Instead of simply using string literal to hardcode SMTP password in the mailsend source code, I use string array to store the credential character by character.
It’s easy to compile mailsend for Raspberry Pi/Raspbian, but it took me few days to figure out how to make a static build of mailsend.exe for Windows platform, from modified source code that hardcodes the SMTP credential and recipients.
Mailsend is an open-source, console-based SMTP client which is great for sending authenticated email (via Microsoft Exchange or Gmail, for example) at command-line interface (CLI), shell script, scheduler, etc.