Is it possible to redirect ssh traffic (not forward), How?

Ezwig

enter image description here

I am aware that it is possible to forward SSH from server A to server B by creating a tunnel.

What I am asking for is rather the red alternative on the schema above. Can this scenario be implemented:

  1. SSH to server A
  2. Server A tells client to go to server B instead
  3. Server B communicates directly with client over SSH

So basically a sort of proxy that after introducing the client-server to each other, he gets out of the communication.

I imagine using a firewall redirection doesn't offer much customization.

What I seek ultimately is a way to make access through SSH to git mirrors transparent for client depending on geolocation.

Advanced scenario scenario

  1. Client Pulling from server A and is closer to server B is redirected to B
  2. When pushing, client remains on server A
Joe M

Unfortunately there is no flag to turn on in SSH to do this. You'd have to code something custom for GIT. (i.e. if serverA has lower ping time than server B use A or vice vera)

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to redirect all traffic except SSH to one local port with iptables

분류에서Dev

forward all mysql traffic to a ssh tunnel

분류에서Dev

How to forward traffic between Linux network namespaces?

분류에서Dev

How to redirect web traffic to specific host with iptables

분류에서Dev

How do I set up a local SOCKS proxy that tunnels traffic through SSH?

분류에서Dev

Using iptables to redirect all traffic to local webserver

분류에서Dev

Do ports placed in a blocking state by STP still forward normal traffic?

분류에서Dev

Forward SSH port - Connect from other place

분류에서Dev

Why would SSH freeze for minutes at a time when other traffic is unaffected?

분류에서Dev

Forward traffic to virtual interface based on source IP address dynamically using iptables

분류에서Dev

SSH not terminated after exit when there is X Forward program

분류에서Dev

Ubuntu 14.04 LAMP/SSH port forward problem/connecting to internet

분류에서Dev

Doing an SSH reverse port forward without GatewayPorts enabled

분류에서Dev

Is it possible to have my server transparently forward requests on a specific port to a website?

분류에서Dev

Simple rule(s) for IIS/Azure web.config file to redirect traffic to non-www HTTPS

분류에서Dev

How to redirect LLI output?

분류에서Dev

How to redirect if form is not submitted

분류에서Dev

how to redirect the URL in magento?

분류에서Dev

Is it possible to “SSH” into my virtual machine remotely?

분류에서Dev

Is it possible to enable/disable SSH using cron

분류에서Dev

How to do a fast-forward merge on GitHub?

분류에서Dev

How to forward uTorrent port on DD-WRT?

분류에서Dev

How forward packets from network interface to another

분류에서Dev

How to delete one word forward in bash?

분류에서Dev

How can I capture the outgoing traffic from a Bridge?

분류에서Dev

How do I turn on nanosecond precision when capturing live traffic?

분류에서Dev

How do I view my website traffic for a GAE product?

분류에서Dev

How to log quantities of IP traffic by src/dst (and port for UDP & TCP)?

분류에서Dev

How to to make /Home/Index redirect to /

Related 관련 기사

  1. 1

    How to redirect all traffic except SSH to one local port with iptables

  2. 2

    forward all mysql traffic to a ssh tunnel

  3. 3

    How to forward traffic between Linux network namespaces?

  4. 4

    How to redirect web traffic to specific host with iptables

  5. 5

    How do I set up a local SOCKS proxy that tunnels traffic through SSH?

  6. 6

    Using iptables to redirect all traffic to local webserver

  7. 7

    Do ports placed in a blocking state by STP still forward normal traffic?

  8. 8

    Forward SSH port - Connect from other place

  9. 9

    Why would SSH freeze for minutes at a time when other traffic is unaffected?

  10. 10

    Forward traffic to virtual interface based on source IP address dynamically using iptables

  11. 11

    SSH not terminated after exit when there is X Forward program

  12. 12

    Ubuntu 14.04 LAMP/SSH port forward problem/connecting to internet

  13. 13

    Doing an SSH reverse port forward without GatewayPorts enabled

  14. 14

    Is it possible to have my server transparently forward requests on a specific port to a website?

  15. 15

    Simple rule(s) for IIS/Azure web.config file to redirect traffic to non-www HTTPS

  16. 16

    How to redirect LLI output?

  17. 17

    How to redirect if form is not submitted

  18. 18

    how to redirect the URL in magento?

  19. 19

    Is it possible to “SSH” into my virtual machine remotely?

  20. 20

    Is it possible to enable/disable SSH using cron

  21. 21

    How to do a fast-forward merge on GitHub?

  22. 22

    How to forward uTorrent port on DD-WRT?

  23. 23

    How forward packets from network interface to another

  24. 24

    How to delete one word forward in bash?

  25. 25

    How can I capture the outgoing traffic from a Bridge?

  26. 26

    How do I turn on nanosecond precision when capturing live traffic?

  27. 27

    How do I view my website traffic for a GAE product?

  28. 28

    How to log quantities of IP traffic by src/dst (and port for UDP & TCP)?

  29. 29

    How to to make /Home/Index redirect to /

뜨겁다태그

보관