Which is the smarter git protocol, ssh or git(over ssh) or https protocol?

后端 未结 7 1714
刺人心
刺人心 2020-12-02 16:53

Which is efficient? SSH:// or Git:// (File compression)

I understand in Git, git protocol is smart because there is a protocol agent on both ends of communication t

7条回答
  •  無奈伤痛
    2020-12-02 17:26

    From Wikipedia:

    To set up an SSH tunnel, one configures an SSH client to forward a specified local port to a port on the remote machine. Once the SSH tunnel has been established, the user can connect to the specified local port to access the network service. The local port need not have the same port number as the remote port.

    If you need some kind of ASCII art representation:

    Git Data ---> [SSH encrypts data] ----- Internet -----> [SSH decrypts data] ----> Git Data
    

提交回复
热议问题