ssh-add /path/to/your_amazon_key.pem
After this git push proceeds successfully.
And a longer way.
ssh-add /path/to/your_amazon_key.pem
cd foo_project
git init
git add *
git commit -m "My initial commit message"
cd /var/git/
mkdir foo.git
cd foo.git
git --bare init
git remote add origin ssh://agolovatuk@example.com/var/git/foo.git
git push origin master
git checkout origin/master
git branch -f master origin/master
git checkout master
touch /var/log/mongodb/mongo1.log
touch /var/log/mongodb/mongo2.log
touch /var/log/mongodb/mongo3.log
mkdir /var/lib/mongodb/data1/db
mkdir /var/lib/mongodb/data2/db
mkdir /var/lib/mongodb/data3/db
dbpath = /var/lib/mongodb/data1/db
bind_ip = 127.0.0.1
noauth = true
verbose = true
port=27017
logpath=/var/log/mongodb/mongo1.log
logappend=true
replSet=mySetName
dbpath = /var/lib/mongodb/data2/db
bind_ip = 127.0.0.1
noauth = true
verbose = true
port=27018
logpath=/var/log/mongodb/mongo2.log
logappend=true
replSet=mySetName
dbpath = /var/lib/mongodb/data3/db
bind_ip = 127.0.0.1
noauth = true
verbose = true
port=27019
logpath=/var/log/mongodb/mongo3.log
logappend=true
replSet=mySetName
mongod --rest --config /etc/mongo1.conf &
mongod --rest --config /etc/mongo2.conf &
mongod --rest --config /etc/mongo3.conf &
$ mongo
> cfg = {_id:"mySetName", members:[
{_id:0,host:"127.0.0.1:27017"},
{_id:1,host:"127.0.0.1:27018"},
{_id:2,host:"127.0.0.1:27019",arbiterOnly:true}
]}
> rs.initiate(cfg);
> rs.status()