All, This thread is a split from the autossh in windows thread, but this is pure opensuse. I'm messing with ssh reverse tunnels for the first time in a couple years. Using a openSUSE 13.2 target laptop and a openSUSE 13.1 server ===
From the target (a laptop) I'm trying the command:
ssh -R 5590:localhost:22 user@cloud1.intelligentavatar.net (cloud1.intelligentavatar.net is a test server of mine.) but it is not working as I expect 2 questions: 1) On the client after invoking the above I get an interactive command prompt on the server as if I ran ssh with no args. I don't recall that happening before. What do I need to change on the ssh line on on the 13.1 server to NOT have it actually give me an interactive command line. I only want the tunnel established. FYI: from the examples online I think what I'm doing should already work, so this may even be a bug of some kind? 2) I had tunneling working last night and this morning. Then it quit working. I had to reboot the opensuse 13.1 server to get it working again. I hope that is not a recurring problem, but for now, nothing to do that I know of. Thanks Greg -- Greg Freemyer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Tue, 21 Apr 2015 13:13:18 -0400 Greg Freemyer <greg.freemyer@gmail.com> пишет:
All,
This thread is a split from the autossh in windows thread, but this is pure opensuse.
I'm messing with ssh reverse tunnels for the first time in a couple years.
Using a openSUSE 13.2 target laptop and a openSUSE 13.1 server
=== From the target (a laptop) I'm trying the command:
ssh -R 5590:localhost:22 user@cloud1.intelligentavatar.net
(cloud1.intelligentavatar.net is a test server of mine.)
but it is not working as I expect
2 questions:
1) On the client after invoking the above I get an interactive command prompt on the server as if I ran ssh with no args. I don't recall that happening before. What do I need to change on the ssh line on on the 13.1 server to NOT have it actually give me an interactive command line. I only want the tunnel established.
ssh -N Also your command will work only for local connections from remote host (it listens on localhost). You need to explicitly give (possibly empty) bind address to allow connection from other hosts. ssh -N -R \*:5590:localhost:22 ... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Apr 21, 2015 at 1:55 PM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
В Tue, 21 Apr 2015 13:13:18 -0400 Greg Freemyer <greg.freemyer@gmail.com> пишет:
All,
This thread is a split from the autossh in windows thread, but this is pure opensuse.
I'm messing with ssh reverse tunnels for the first time in a couple years.
Using a openSUSE 13.2 target laptop and a openSUSE 13.1 server
=== From the target (a laptop) I'm trying the command:
ssh -R 5590:localhost:22 user@cloud1.intelligentavatar.net
(cloud1.intelligentavatar.net is a test server of mine.)
but it is not working as I expect
2 questions:
1) On the client after invoking the above I get an interactive command prompt on the server as if I ran ssh with no args. I don't recall that happening before. What do I need to change on the ssh line on on the 13.1 server to NOT have it actually give me an interactive command line. I only want the tunnel established.
ssh -N
Perfect. Lost in the clutter of the man page and I assume it used to not be needed so not in many of the online examples
Also your command will work only for local connections from remote host (it listens on localhost). You need to explicitly give (possibly empty) bind address to allow connection from other hosts.
ssh -N -R \*:5590:localhost:22 ...
"*" must be the default now. I'm not having any issue with that, but I will keep it in mind as I expand my testing. Thanks Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Tue, 21 Apr 2015 14:40:00 -0400 Greg Freemyer <greg.freemyer@gmail.com> пишет:
Also your command will work only for local connections from remote host (it listens on localhost). You need to explicitly give (possibly empty) bind address to allow connection from other hosts.
ssh -N -R \*:5590:localhost:22 ...
"*" must be the default now. I'm not having any issue with that, but I will keep it in mind as I expand my testing.
Apparently GatewayPorts option enables widlcard default also for -R. It is rather unclear from manual which sounds like you need both GatewayPorts *and* explicit bind address. Do you have it enabled? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Apr 21, 2015 at 11:29 PM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
В Tue, 21 Apr 2015 14:40:00 -0400 Greg Freemyer <greg.freemyer@gmail.com> пишет:
Also your command will work only for local connections from remote host (it listens on localhost). You need to explicitly give (possibly empty) bind address to allow connection from other hosts.
ssh -N -R \*:5590:localhost:22 ...
"*" must be the default now. I'm not having any issue with that, but I will keep it in mind as I expand my testing.
Apparently GatewayPorts option enables widlcard default also for -R. It is rather unclear from manual which sounds like you need both GatewayPorts *and* explicit bind address. Do you have it enabled?
/etc/ssh/sshd_config: GatewayPorts yes I probably fixed that last time I was messing with ssh tunnels. I think openSUSE defaults it to no. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrei Borzenkov
-
Greg Freemyer