Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

use unix:/tmp/SG-XXXXYYYYZZZZ instead of tcp:NNNNN for tunnel ports #63

@jbrzusto

Description

@jbrzusto

This avoids having to worry about other applications using the tunnel port numbers.
Only works with more recent ssh clients than the version on the 2017 BBBK sg release,
so has to wait until the new release for that platform.

Use

  • create tunnel on SG: ssh -f -N -R/tmp/SG-XXXXYYYYZZZZ:localhost:22 ...
  • tunnel in from server: ssh -o ProxyCommand="nc -U /tmp/SG-XXXXYYYYZZZZ" ... bone@localhost (because ssh's -p option doesn't allow for a unix domain socket)
  • rsync on data server: rsync -e "-e 'sshpass -p bone ssh -o ProxyCommand=\"nc -U /tmp/SG-XXXXYYYYZZZZ...\" ...' ..."

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions