Linux command line tips and tricks
Posted by hank, Thu Jul 19 22:45:00 UTC 2007
This awesome page told me about the <<< operator in bash. It rocks. It also told me the best way to set an initial login password:
umask u=rw,go=
openssl rand -base64 6 | tee -a PasswordFile | passwd –stdin joe
chage -d 0 joe
Also, there’s ssh-copy-id:
Usage: /usr/bin/ssh-copy-id [-i [identity_file]] [user@]machine

Blog Posts