1 |
> Hmm, I don't get it. Why would this .ssh/config not work? |
2 |
> |
3 |
> Host gateway |
4 |
> Hostname gateway.example.com |
5 |
> User alan |
6 |
> LocalForward 1111 cvs.example.com:22 |
7 |
> |
8 |
> Host cvs |
9 |
> Hostname localhost |
10 |
> Port 1111 |
11 |
> User alan |
12 |
> |
13 |
> You log in at gateway first, and during that session you can access the |
14 |
> CVS server with 'ssh cvs', or use CVS via CVSROOT=:ext:cvs:/var/cvs. |
15 |
> Can't you? |
16 |
> |
17 |
|
18 |
You missed Alan's point - the ssh forwarding works, but cvs doesnt appear to |
19 |
support using a non-standard destination port. |
20 |
|
21 |
So if cvs is that lame, perhaps an ugly iptables prerouting hack is the only |
22 |
option? |