Category Archives: bash

Ssh complains host id has been changed

There are situations when host id might be changed a few times during fast, automatic, and massive host deployment. Ssh client begins to complain on changed host id. [root@builder2 ~]# ssh webmel53 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping [...]

Posted in bash | Leave a comment

Send file as attachment from commnad line

There’s an easy way of sending files as attachment from command line: uuencode file name | mail -s "Subject" "to@tld.cz" — -ffrom@tld.cz Yes, there is double hyphen and -f before the from email address.

Also posted in mailing | Leave a comment