gist にあるものを git clone して .git/config の http を ssh に書き換え
.git/config
[remote "origin"] # url = http://gist.github.com/foobar.git url = ssh://gist.github.com/foobar.git
~/.ssh/config
追記2013-10-27:github.comの場合
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Host gist.github.com
User git
Hostname ssh.github.com
Port 443
IdentityFile ~/.ssh/id_rsa
TCPKeepAlive yes
IdentitiesOnly yesこれで
git push origin master
すれば「Warning: Permanently added '[ssh.github.com]〜」とか表示されるけど、ssh で push できた。