Subject: 25.0.50; Tramp with ssh not working with openssh 6.7 while worked with 6.6
From: Filipp Gunbin <[email-masked]>
To: [email-masked]
Date: Tue, 27 Jan 2015 17:41:26 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

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/)