ปกติหากใช้ git ผ่าน ssh จะวิ่งผ่าน port 22
git clone git@github.com:project/test.gitซึ่งบางที่ติด policy ไม่ให้ใช้ port นี้ ดังนั้นจึงต้องใช้ port 443 แทน ตั้งค่าดังนี้
nano ~/.ssh/configใส่:
Host github.com
HostName ssh.github.com
User git
Port 443จากนั้นใช้คำสั่งเดิม
git clone git@github.com:project/test.gitเพื่อความชัวว่า server ออก port 443 ไปยัง ssh.github.com ได้
nc -zv ssh.github.com 443ถ้าได้จะแสดง
Connection to ssh.github.com 443 port [tcp/https] succeeded!