Did you setup the repository on the remote server? You need to run
mkdir -p /home/jonas/code/myproject.git
cd /home/jonas/code/myproject.git
git init --bare
on the server in order to set it up. I recommend taking a look at how to setup a git server in the free ProGit book.