make local ssh configuration #!/bin/bash # jem 22 May 2015 copyright http://johnmeister.com/linux ################################################### export HOST=`hostname` ################################################### mkdir .ssh ; chmod 700 .ssh ; cd .ssh ; \ /usr/bin/ssh-keygen -f id_rsa -N "" -q ; cp id_rsa.pub "id_rsa.$HOST" ########################################################################################## # ssh 192.168.1.x 'mkdir .ssh ; chmod 700 ; cd .ssh ; \ # cp authorized_keys authorized_keys.`date +%F-%Hh%Mm` ; \ # ssh-keygen -f id_rsa -q -N '' ; cp id_rsa.pub id_rsa.tonto ; \ # cat >>authorized_keys' <~/.ssh/id_rsa.asus ; \ # scp ~/.ssh/id_* 192.168.1.168:~/.ssh ; scp 192.168.1.168:~/.ssh/id_rsa.tonto ~/.ssh ; \ # cp authorized_keys authorized_keys.`date +%F-%Hh%Mm` ; \ ##########################################################################################