Linux command line tips and tricks

Posted by hank, Fri Jul 20 02: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

Tags:

Comments

Have your say

A name is required. You may use Markdown in your comments.