mysql
Friday, September 25th, 2009
(mt) Set up authorized keys (to enable automatic login)
Copy your public key from the machine you want to backup to.
sh-3.2$ cat ~/.ssh/id_rsa.pub
Enable SSH and then SSH into (mt).
-bash-3.2$ cd
-bash-3.2$ whoami
[username]
-bash-3.2$ su
Password:
[root@domain domain.com]# mkdir .ssh
[root@domain domain.com]# chown [username] .ssh/
[root@domain domain.com]# exit
-bash-3.2$ vi .ssh/authorized_keys2
[paste in copied keys making sure you remove pasted in linebreaks]
-bash-3.2$ chmod 600 .ssh/authorized_keys2
Test [...]