How do I connect to a local unix socket (~/test.sock) via ssh? This sockets forwards to an actual ssh server. The obvious does not work and I can't find any documentation:
public> ssh /home/username/test.sock "ssh: Could not resolve hostname: /home/username/test.sock: Name of service not known"
The Problem I try to solve, is to connect from my (
public) university server to my (
local) PC, which is behind NAT and not visible to public.
The canonical solution is to create a ssh proxy/tunnel to
local> ssh -NR 2222:localhost:22 public
But this is not possible, as the administration prohibits creating ports. So I have thought about using UNIX socket instead, which works:
local> ssh -NR /home/username/test.sock:localhost:22 public
But now, how can I connect to it with ssh?