This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### set email by cli | |
/tool e-mail | |
set address=74.125.131.108 ### smtp.gmail.com | |
set port=587 | |
set [email protected] | |
set user=gmail_user | |
set password=gmail_password | |
### test email | |
send [email protected] subject="email test" body="email test" start-tls=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in 1 2 3 4 5 6 ; do ssh-keygen -t rsa -b 2048 -C "$i" -N '' -f $i.key; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read l; do | |
[[ -n $l && ${l###} = $l ]] && ssh-keygen -l -f /dev/stdin <<<$l; | |
done < .ssh/authorized_keys |