This is how the ssh daemon should be configured on band site hosting servers.
See also: Creating a Band Site Hosting Server
Generate ssh key pairs for all users who need them.
# ssh-keygen -t rsa
- default file location is correct
- for root, password can be left blank. Other accounts should include one.
# cat ~/.ssh/id_rsa.pub
Keep track of that output.
Configure the user in Gitosis
$ cd /path/to/gitosis/repo
$ vim keydir/root@bandsX.bombplates.com.pub
Paste the results of the above cat command. Save and exit
$ vim gitosis.conf
Add root@bandsX.bombplates.com to the BombplatesRoot group
This should be done for each user that will need to scp/ssh from bandsX.bombplates.com to bombplates.com
$ git add keydir/root@bandsX.bombplates.com.pub gitosis.confg [any other keydir/*.pub files you added]
$ git commit
$ git push
Configure the sshd:
edit /etc/ssh/sshd_config
PasswordAuthentication no
restart sshd
# /etc/init.d/sshd restart