I know there are lots of links about this topic and some official ones. I have tried several SO answers too but I am still at a loss.
- I have created a ED25519 SSH private key (PPK file) and public key (PUB file).
- My key has a passphrase.
- I have added my public key to GitHub.
- I have added my PPK key to Putty Pageant.
- I have changed the repository to use the SSH key URL as identified on GitHub.
But it will not push and came up with a port 22 issue. After research I found and answer that said to create a config
file and put this in it:
Host github.com
Hostname ssh.github.com
Port 443
then, I tried this command:
ssh -vT [email protected]
It found my key and asked for the passphrase. It worked, although it does say this:
Hi xxxxx! You've successfully authenticated, but GitHub does not provide shell access.
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2160, received 2304 bytes, in 0.2 seconds
Bytes per second: sent 9143.6, received 9753.2
debug1: Exit status 1
It has that comment about the shell? Anyway, I then go into TortoiseGit Git settings and confirm it is using my "noreply" email address, has the SSH git URL and that I have selected the PPK PuttyLink file.
Despite all of this, I can't push to the remote server. Tried for 3 days. :(
What step am I missing?
CodePudding user response:
The configuration file .ssh/config
is not honored by PuTTY. Switch to OpenSSH or configure a session in PuTTY or use the url ssh://[email protected]:443/...
.
cf. https://tortoisegit.org/support/faq/#howsshdifferentport