我可以从我的 VPS 很好地推送到我的 GitHub 存储库,但是一旦我进入一个屏幕,我就会被拒绝:
littke@[server]:~/src/[repo]$ git push
Pushing to git@github.com:littke/[repo].git
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
即使我能够验证:
littke@[server}:~/src/[repo]$ ssh git@github.com -i ~/.ssh/littke
Enter passphrase for key '/home/littke/.ssh/littke':
PTY allocation request failed on channel 0
Hi littke! You've successfully authenticated, but GitHub does not provide shell access.
同样,这只发生在 GNU Screen 内。我可以很好地推开它。我用谷歌搜索但找不到任何东西。