GNU bug report logs - #19702
25.0.50; Tramp with ssh not working with openssh 6.7 while worked with 6.6

Previous Next

Package: emacs;

Reported by: Filipp Gunbin <fgunbin <at> fastmail.fm>

Date: Tue, 27 Jan 2015 14:42:02 UTC

Severity: normal

Merged with 19861, 21374, 21740

Found in versions 24.4, 25.0.50

Fixed in version 24.5

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19702 in the body.
You can then email your comments to 19702 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Tue, 27 Jan 2015 14:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Filipp Gunbin <fgunbin <at> fastmail.fm>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 27 Jan 2015 14:42:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Tue, 27 Jan 2015 17:41:26 +0300
I've recently upgraded openssh to 6.7 on MacOS X (from MacPorts) and ssh
in Tramp stopped working.  Logs are below.  Activating openssh 6.6
brings back the working state.

The file being opened is /ssh:root@<myhost>:/opt/ as can be seen in the
logs.

Filipp


*Messages*:

Tramp: Opening connection for root@<myhost> using ssh...
Tramp: Sending command `exec ssh -l root  -o ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587MEg.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none <myhost>'
Tramp: Waiting for prompts from remote shell...
Tramp: Sending password
Tramp: Waiting for prompts from remote shell...failed
Tramp: Opening connection for root@<myhost> using ssh...failed
find-file--read-only: /ssh:root@<myhost>:/opt/ does not exist

Tramp log buffer:

;; GNU Emacs: 25.0.50.1 Tramp: 2.2.11-pre -*- mode: outline; -*-
17:34:12.309869 tramp-get-file-exists-command (5) # Finding command to check if file exists
17:34:12.309984 tramp-get-test-command (5) # Finding a suitable `test' command
17:34:12.310350 tramp-maybe-open-connection (3) # Opening connection for root@<myhost> using ssh...
17:34:12.313477 tramp-maybe-open-connection (6) # /bin/sh -i
17:34:12.316213 tramp-wait-for-regexp (6) # 
#$ 
17:34:12.318521 tramp-maybe-open-connection (3) # Sending command `exec ssh -l root  -o ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none <myhost>'
17:34:12.318598 tramp-send-command (6) # exec ssh -l root  -o ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none <myhost>
17:34:12.318933 tramp-process-actions (3) # Waiting for prompts from remote shell...
17:34:12.767357 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
17:34:12.767533 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:.? *\)\'" from remote shell
17:34:12.767679 tramp-process-one-action (5) # Call `tramp-action-password'
17:34:12.768007 tramp-action-password (3) # Sending password
17:34:15.925594 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
17:34:15.925719 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
17:34:15.925839 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|.\)[^]#$%>
]*#?[]#$%>] *\(.\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
17:34:15.925920 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
17:34:15.925982 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
17:34:15.926050 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
17:34:15.926103 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
17:34:15.926154 tramp-process-one-action (5) # Call `tramp-action-process-alive'
17:34:15.926305 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
17:34:15.926395 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:.? *\)\'" from remote shell
17:34:15.926521 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
17:34:15.926588 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
17:34:15.926643 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|.\)[^]#$%>
]*#?[]#$%>] *\(.\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
17:34:15.926693 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
17:34:15.926746 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
17:34:15.926794 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
17:34:15.926841 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
17:34:15.926883 tramp-process-one-action (5) # Call `tramp-action-process-alive'
17:34:15.931202 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
17:34:15.932269 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:.? *\)\'" from remote shell
17:34:15.932625 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
17:34:15.932762 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
17:34:15.932856 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|.\)[^]#$%>
]*#?[]#$%>] *\(.\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
17:34:15.932960 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
17:34:15.932995 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
17:34:15.933037 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
17:34:15.933082 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
17:34:15.933123 tramp-process-one-action (5) # Call `tramp-action-process-alive'
17:34:15.933185 tramp-process-actions (6) # 
root@<myhost>'s password: 
unix_listener: "/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.root@<myhost>:22.rIZDlnMe9NViEUbt" too long for Unix domain socket.
17:34:15.933268 tramp-process-sentinel (5) # Sentinel called: `#<process *tramp/ssh root@<myhost>*>' `exited abnormally with code 255
'
17:34:15.934827 tramp-process-actions (1) # File error: Tramp failed to connect.  If this happens repeatedly, try
    `M-x tramp-cleanup-this-connection'
17:34:15.935280 tramp-maybe-open-connection (3) # Opening connection for root@<myhost> using ssh...failed
17:34:15.935420 tramp-file-name-handler (1) # Suppress received in operation (file-exists-p /ssh:root@<myhost>:/opt/)
17:34:15.936333 tramp-get-file-exists-command (5) # Finding command to check if file exists
17:34:15.936414 tramp-get-test-command (5) # Finding a suitable `test' command
17:34:15.936502 tramp-file-name-handler (1) # Suppress received in operation (file-exists-p /ssh:root@<myhost>:/opt/)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Tue, 27 Jan 2015 16:07:02 GMT) Full text and rfc822 format available.

Message #8 received at 19702 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 19702 <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Tue, 27 Jan 2015 17:06:33 +0100
Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

Hi Filipp,

> I've recently upgraded openssh to 6.7 on MacOS X (from MacPorts) and ssh
> in Tramp stopped working.  Logs are below.  Activating openssh 6.6
> brings back the working state.
>
> Tramp log buffer:
>
> 17:34:12.318598 tramp-send-command (6) # exec ssh -l root -o
> ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.%r@%h:%p
> -o ControlMaster=auto -o ControlPersist=no -e none <myhost>
> 17:34:15.933185 tramp-process-actions (6) # 
> root@<myhost>'s password: 
> unix_listener: "/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.root@<myhost>:22.rIZDlnMe9NViEUbt" too long for Unix domain socket.

You see the error message: the file name of the socket is too long. What
has changed wrt openssh 6.6? Has the template Tramp uses being expanded
differently? And why is there the suffix ".rIZDlnMe9NViEUbt" after the
port number?

As workaround, you could change the template Tramp uses in
`tramp-ssh-controlmaster-options', or you could disable those options
via `tramp-use-ssh-controlmaster-options'.

> Filipp

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Tue, 27 Jan 2015 17:46:02 GMT) Full text and rfc822 format available.

Message #11 received at 19702 <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 19702 <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Tue, 27 Jan 2015 20:45:39 +0300
Michael,

On 27/01/2015 17:06 +0100, Michael Albinus wrote:

> Filipp Gunbin <fgunbin <at> fastmail.fm> writes:
>
> Hi Filipp,
>
>> I've recently upgraded openssh to 6.7 on MacOS X (from MacPorts) and ssh
>> in Tramp stopped working.  Logs are below.  Activating openssh 6.6
>> brings back the working state.
>>
>> Tramp log buffer:
>>
>> 17:34:12.318598 tramp-send-command (6) # exec ssh -l root -o
>> ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.%r@%h:%p
>> -o ControlMaster=auto -o ControlPersist=no -e none <myhost>
>> 17:34:15.933185 tramp-process-actions (6) # 
>> root@<myhost>'s password: 
>> unix_listener:
>> "/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.587ZOm.root@<myhost>:22.rIZDlnMe9NViEUbt"
>> too long for Unix domain socket.
>
> You see the error message: the file name of the socket is too long. What
> has changed wrt openssh 6.6? Has the template Tramp uses being expanded
> differently? And why is there the suffix ".rIZDlnMe9NViEUbt" after the
> port number?

Release notes for openssh 6.7 [1] tell:

 * ssh(1): Add a %C escape sequence for LocalCommand and ControlPath
   that expands to a unique identifer based on a hash of the tuple of
   (local host, remote user, hostname, port). Helps avoid exceeding
   miserly pathname limits for Unix domain sockets in multiplexing
   control paths; bz#2220

I changed `tramp-ssh-controlmaster-options' as follows:

(setq tramp-ssh-controlmaster-options "-o ControlPath=%%C -o
ControlMaster=auto -o ControlPersist=no")

And it started working.

BTW, "name is too long" errors also occurred with 6.6, too.  And the
template was expanded similarly, I checked that.

The original value contained "%t.%%r@%%h:%%p".  %r, %h and %p could be
substituted by %C as the above doc says.  But what about %t?  It's a
temporary file as I understand and is substituted by Tramp, not by ssh.
Is it critical that it should be present in the resulting file name?

Filipp

[1] http://www.openssh.com/txt/release-6.7




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Mon, 02 Feb 2015 09:21:02 GMT) Full text and rfc822 format available.

Message #14 received at 19702 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 19702 <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Mon, 02 Feb 2015 10:20:34 +0100
Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

> Michael,

Hi Filipp,

> Release notes for openssh 6.7 [1] tell:
>
>  * ssh(1): Add a %C escape sequence for LocalCommand and ControlPath
>    that expands to a unique identifer based on a hash of the tuple of
>    (local host, remote user, hostname, port). Helps avoid exceeding
>    miserly pathname limits for Unix domain sockets in multiplexing
>    control paths; bz#2220
>
> I changed `tramp-ssh-controlmaster-options' as follows:
>
> (setq tramp-ssh-controlmaster-options "-o ControlPath=%%C -o
> ControlMaster=auto -o ControlPersist=no")
>
> And it started working.

I have committed a patch to the emacs-24 branch which uses %C in
ControlPath if possible. Could you, pls, check? I have no openssh 6.7
installed, so I cannot test myself.

> The original value contained "%t.%%r@%%h:%%p".  %r, %h and %p could be
> substituted by %C as the above doc says.  But what about %t?  It's a
> temporary file as I understand and is substituted by Tramp, not by ssh.
> Is it critical that it should be present in the resulting file name?

In the past there were problems when Tramp used the same ControlPath
like ssh connections started/stopped outside Emacs. That's why Tramp
uses its own one.

> Filipp

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Mon, 02 Feb 2015 14:10:02 GMT) Full text and rfc822 format available.

Message #17 received at 19702 <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 19702 <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Mon, 02 Feb 2015 17:09:25 +0300
Michael,

On 02/02/2015 10:20 +0100, Michael Albinus wrote:

> I have committed a patch to the emacs-24 branch which uses %C in
> ControlPath if possible. Could you, pls, check? I have no openssh 6.7
> installed, so I cannot test myself.

Thanks, but it didn't work:

17:02:55.588956 tramp-send-command (6) # exec ssh -l root  -o ControlMaster=auto -o ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.54213PO4.%C -o ControlPersist=no -e none <myhost>
17:02:55.606731 tramp-process-one-action (5) # Call `tramp-action-process-alive'
17:02:55.606825 tramp-process-actions (6) #
ControlPath too long^
17:02:55.606932 tramp-process-sentinel (5) # Sentinel called: `#<process *tramp/ssh root@<myhost>*>' `exited abnormally with code 255'
17:02:55.610263 tramp-process-actions (1) # File error: Tramp failed to connect.  If this happens repeatedly, try
`M-x tramp-cleanup-this-connection'
17:02:58.732912 tramp-maybe-open-connection (3) # Opening connection for root@<myhost> using ssh...failed

>> The original value contained "%t.%%r@%%h:%%p".  %r, %h and %p could be
>> substituted by %C as the above doc says.  But what about %t?  It's a
>> temporary file as I understand and is substituted by Tramp, not by ssh.
>> Is it critical that it should be present in the resulting file name?
>
> In the past there were problems when Tramp used the same ControlPath
> like ssh connections started/stopped outside Emacs. That's why Tramp
> uses its own one.

Aren't values produced by %C supposed to be unique?  Then probably the
temporary file isn't needed.

Filipp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Mon, 02 Feb 2015 15:17:01 GMT) Full text and rfc822 format available.

Message #20 received at 19702 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 19702 <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Mon, 02 Feb 2015 16:16:27 +0100
Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

> Michael,

Hi Filipp,

>> I have committed a patch to the emacs-24 branch which uses %C in
>> ControlPath if possible. Could you, pls, check? I have no openssh 6.7
>> installed, so I cannot test myself.
>
> Thanks, but it didn't work:
>
> 17:02:55.588956 tramp-send-command (6) # exec ssh -l root -o
> ControlMaster=auto -o
> ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.54213PO4.%C
> -o ControlPersist=no -e none <myhost>

Is the ControlPath still too long? What happens, if you call the command
directly in the shell?

# ssh -l root -o ControlMaster=auto -o ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.54213PO4.%C -o ControlPersist=no -e none <myhost>

And what happens if you call

# ssh -l root -o ControlMaster=auto -o ControlPath=tramp.54213PO4.%C -o ControlPersist=no -e none <myhost>

> Aren't values produced by %C supposed to be unique?  Then probably the
> temporary file isn't needed.

No, they are unique for the triple (user, host, port) only. This triple
could be used also outside Emacs for an ssh connection.

> Filipp

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Mon, 02 Feb 2015 17:55:02 GMT) Full text and rfc822 format available.

Message #23 received at 19702 <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 19702 <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Mon, 02 Feb 2015 20:53:58 +0300
On 02/02/2015 16:16 +0100, Michael Albinus wrote:

> Filipp Gunbin <fgunbin <at> fastmail.fm> writes:
>>
>> Thanks, but it didn't work:
>>
>> 17:02:55.588956 tramp-send-command (6) # exec ssh -l root -o
>> ControlMaster=auto -o
>> ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.54213PO4.%C
>> -o ControlPersist=no -e none <myhost>
>
> Is the ControlPath still too long? What happens, if you call the command
> directly in the shell?
>
> # ssh -l root -o ControlMaster=auto -o
> ControlPath=/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.54213PO4.%C
> -o ControlPersist=no -e none <myhost>
>
> And what happens if you call
>
> # ssh -l root -o ControlMaster=auto -o ControlPath=tramp.54213PO4.%C
> -o ControlPersist=no -e none <myhost>

$ ssh -l root -o ControlMaster=auto -o ControlPath='/var/folders/yb/0cdss5q52d1848_2th2kp_740000gn/T/tramp.54213PO4.%C' -o ControlPersist=no -e none <myhost>
ControlPath too long

$ ssh -l root -o ControlMaster=auto -o ControlPath='tramp.54213PO4.%C' -o ControlPersist=no -e none <myhost>
root@<myhost>'s password: 
... <asks for password>
Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic x86_64)
...

>> Aren't values produced by %C supposed to be unique?  Then probably the
>> temporary file isn't needed.
>
> No, they are unique for the triple (user, host, port) only. This triple
> could be used also outside Emacs for an ssh connection.

But how does openssh prevent collisions between separate running
instances of itself, then?

Filipp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Tue, 03 Feb 2015 09:46:01 GMT) Full text and rfc822 format available.

Message #26 received at 19702 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 19702 <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Tue, 03 Feb 2015 10:45:16 +0100
Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

> $ ssh -l root -o ControlMaster=auto -o ControlPath='tramp.54213PO4.%C'
> -o ControlPersist=no -e none <myhost>
> root@<myhost>'s password: 
> ... <asks for password>
> Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic x86_64)
> ...

I've changed it like this. Could you, please, test again?

> Filipp

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19702; Package emacs. (Tue, 03 Feb 2015 12:33:01 GMT) Full text and rfc822 format available.

Message #29 received at 19702 <at> debbugs.gnu.org (full text, mbox):

From: Filipp Gunbin <fgunbin <at> fastmail.fm>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 19702 <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Tue, 03 Feb 2015 15:31:57 +0300
On 03/02/2015 10:45 +0100, Michael Albinus wrote:

> Filipp Gunbin <fgunbin <at> fastmail.fm> writes:
>
>> $ ssh -l root -o ControlMaster=auto -o ControlPath='tramp.54213PO4.%C'
>> -o ControlPersist=no -e none <myhost>
>> root@<myhost>'s password: 
>> ... <asks for password>
>> Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic x86_64)
>> ...
>
> I've changed it like this. Could you, please, test again?

It's ok now, thanks!




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Tue, 03 Feb 2015 12:44:02 GMT) Full text and rfc822 format available.

Notification sent to Filipp Gunbin <fgunbin <at> fastmail.fm>:
bug acknowledged by developer. (Tue, 03 Feb 2015 12:44:03 GMT) Full text and rfc822 format available.

Message #34 received at 19702-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Filipp Gunbin <fgunbin <at> fastmail.fm>
Cc: 19702-done <at> debbugs.gnu.org
Subject: Re: bug#19702: 25.0.50;
 Tramp with ssh not working with openssh 6.7 while worked with 6.6
Date: Tue, 03 Feb 2015 13:43:40 +0100
Version: 24.5

Filipp Gunbin <fgunbin <at> fastmail.fm> writes:

>> I've changed it like this. Could you, please, test again?
>
> It's ok now, thanks!

Thanks for testing, I'm closing the bug.

Best regards, Michael.




Forcibly Merged 19702 19861. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 16 Feb 2015 19:08:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 17 Mar 2015 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 31 Aug 2015 16:04:02 GMT) Full text and rfc822 format available.

Forcibly Merged 19702 19861 21374. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 31 Aug 2015 16:04:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 29 Sep 2015 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 23 Oct 2015 00:22:02 GMT) Full text and rfc822 format available.

Forcibly Merged 19702 19861 21374 21740. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 23 Oct 2015 00:22:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 20 Nov 2015 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.