[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tramp (2.2.6-24.3); connecting through socks and ssh hangs without promp
Dennis van Dok
tramp (2.2.6-24.3); connecting through socks and ssh hangs without prompt
Tue, 18 Nov 2014 17:01:26 +0100
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0
I'm trying to connect to a host (bosui.nikhef.nl) that can only be
reached through a bastion host (login.nikhef.nl). To that end, I've
started an ssh command with a dynamic port forward like this:
ssh -D 2020 -vvv login.nikhef.nl
I can now use this to make a hop:
ssh -o "ProxyCommand /bin/nc -x localhost:2020 %h %p" bosui.nikhef.nl
which allows me to log in (using my public key and ssh-agent
I've got my agent set up to prompt for key use:
Now I'm trying to connect with tramp from within emacs:
C-x C-f /socks:localhost#2020|ssh:bosui.nikhef.nl:/
I can see this opens a connection through the socks proxy. When running
the ssh server in debug mode, the last line of output reads:
Connection from 126.96.36.199 port 34502
Normal interactions would follow with something like
debug1: Client protocol version 2.0; client software version
But I don't see this in the tramp case.
The traces from the tramp debug buffer suggest that tramp is expecting
to see prompts, but clearly the session is not at that stage yet (there
has been no key exchange for instance, let alone an agreement on the
authentication protocol). It seems to hang at the transparent ssh
connection it tries to set up through localhost, where emacs plays the
role of netcat in the example above.
Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.6)
of 2013-12-22 on brahms, modified by Debian
Package: tramp (2.2.6-24.3)
(The only buffer with any content was *debug tramp/ssh bosui.nikhef.nl*,
which you will find attached. The others were empty.)
State could not be dumped due to the following error:
You should still send this bug report.
buffer-name "*tramp/socks address@hidden"
buffer-name "*tramp/ssh bosui.nikhef.nl*"
buffer-name "*tramp/aux address@hidden <127.0.0.1:54154>"
This is a special notion of the `gnus/message' package. If you
use another mail agent (by copying the contents of this buffer)
please ensure that the buffers are attached to your email.
Content-Description: *tramp/socks address@hidden
Content-Description: *tramp/ssh bosui.nikhef.nl*
Content-Description: *tramp/aux address@hidden <127.0.0.1:54154>
Content-Description: *debug tramp/ssh bosui.nikhef.nl*
;; GNU Emacs: 24.3.1 Tramp: 2.2.6-24.3 -*- mode: outline; -*-
16:35:56.428875 tramp-maybe-open-connection (3) # Opening connection for
bosui.nikhef.nl using ssh...
16:35:56.429229 tramp-compute-multi-hops (5) # Add proxy ("bosui\.nikhef\.nl"
16:35:56.431764 tramp-gw-open-connection (4) # Opening auxiliary process
D.H. van Dok :: System administrator :: www.nikhef.nl/grid ::
Phone +31 20 592 22 28 :: http://www.nikhef.nl/~dennisvd/
Description: Binary data
- tramp (2.2.6-24.3); connecting through socks and ssh hangs without prompt,
Dennis van Dok <=