Stop shortcutting git.rcjohnstone.com in ssh config
The router resolves it to 10.0.0.2 at the DNS level and the remote URL already carries :2222, so the alias was redundant everywhere and wrong on mainframe, where it pointed at localhost. Verified: connecting with -F /dev/null succeeds from both mainframe and system76.
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
# Gitea runs on this machine; reach it on the loopback rather than out and back.
|
||||
Host git.rcjohnstone.com
|
||||
HostName localhost
|
||||
Port 2222
|
||||
User connor
|
||||
IdentityFile ~/.ssh/id_ed25519
|
||||
# No machine-specific ssh aliases on mainframe.
|
||||
# git.rcjohnstone.com is resolved by the router's DNS to 10.0.0.2 and the
|
||||
# git remote URL carries :2222, so no alias is needed or wanted here.
|
||||
|
||||
Reference in New Issue
Block a user