Proxy to Gitlab
This SSH configuration - typically in a ~/.ssh/config file.
SSH Configuration
Host example-network
HostName 192.168.0.1
User someusername
PasswordAuthentication no
PubkeyAuthentication yes
IdentityFile ~/.ssh/example_network_id_ed25519
IdentitiesOnly yes
Port 22
ServerAliveInterval 10
ServerAliveCountMax 2
Compression yes
TCPKeepAlive yes
GatewayPorts yes
RemoteForward 5020
RemoteForward 5022 git.example.com:22
SSH profiles in SSH server
Host git.example.com
HostName 127.0.0.1
User git
Port 5022
PubkeyAuthentication yes
IdentityFile ~/.ssh/example_network_id_ed25519_git
IdentitiesOnly yes