Generate ssh key
# RSA
ssh-keygen -m PEM -t rsa -b 4096 -C "zeyanlin@outlook.com"
# ED25519
ssh-keygen -t ed25519 -C "dev" -f ~/.ssh/ed25519
ssh config
Host private.example.com
ProxyCommand /usr/local/bin/cloudflared access ssh --hostname %h
# RSA
ssh-keygen -m PEM -t rsa -b 4096 -C "zeyanlin@outlook.com"
# ED25519
ssh-keygen -t ed25519 -C "dev" -f ~/.ssh/ed25519
Host private.example.com
ProxyCommand /usr/local/bin/cloudflared access ssh --hostname %h