Thank you, it seems to get stuck on a few tramp functions freezing emacs - however it returns after I physically remove the gpg smart card. Please see the truncated output from the debug buffer below.
The port number here is different from the previous example, because I've uninstalled the other machine just yesterday. There is however another one available to sshh under the same IP address.
1 │ ;; Emacs: 29.1 Tramp: 2.6.0.29.1 -*- mode: outline; coding: utf-8; -*- 2 │ 13:30:27.776549 tramp-maybe-open-connection (3) # Opening connection nil for 128.40.123.56 using ssh...
3 │ 13:30:27.776621 tramp-call-process (6) # ‘locale -a’ nil *temp* 4 │ 13:30:27.777637 tramp-call-process (6) # 0 5 │ C 6 │ C.UTF-8 7 │ en_GB.utf8 8 │ en_US.utf8 9 │ POSIX10 │ 13:30:27.777725 tramp-ssh-controlmaster-options (4) # Computing ControlMaster options... 11 │ 13:30:27.777751 tramp-call-process (6) # ‘ssh -G -o ControlMaster=auto 0.0.0.1’ nil nil
12 │ 13:30:27.781422 tramp-call-process (6) # 013 │ Pseudo-terminal will not be allocated because stdin is not a terminal.
14 │ host 0.0.0.1 15 │ user user1 16 │ hostname 0.0.0.1 17 │ port 22 18 │ addressfamily any 19 │ batchmode no 20 │ canonicalizefallbacklocal yes 21 │ canonicalizehostname false 22 │ checkhostip no 23 │ compression no 24 │ controlmaster auto 25 │ enablesshkeysign no 26 │ clearallforwardings no 27 │ exitonforwardfailure no 28 │ fingerprinthash SHA256 29 │ forwardx11 no 30 │ forwardx11trusted no 31 │ gatewayports no 32 │ gssapiauthentication no 33 │ gssapidelegatecredentials no 34 │ hashknownhosts no 35 │ hostbasedauthentication no 36 │ identitiesonly no 37 │ kbdinteractiveauthentication yes 38 │ nohostauthenticationforlocalhost no 39 │ passwordauthentication yes 40 │ permitlocalcommand no 41 │ proxyusefdpass no 42 │ pubkeyauthentication true 43 │ requesttty auto 44 │ sessiontype default 45 │ stdinnull no 46 │ forkafterauthentication no 47 │ streamlocalbindunlink no 48 │ stricthostkeychecking ask 49 │ tcpkeepalive yes 50 │ tunnel false 51 │ verifyhostkeydns false 52 │ visualhostkey no 53 │ updatehostkeys true 54 │ enableescapecommandline no 55 │ canonicalizemaxdots 1 56 │ connectionattempts 1 57 │ forwardx11timeout 1200 58 │ numberofpasswordprompts 3 59 │ serveralivecountmax 3 60 │ serveraliveinterval 0 61 │ requiredrsasize 102462 │ ciphers chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com 63 │ hostkeyalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-cert-v01@> 64 │ hostbasedacceptedalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256> 65 │ kexalgorithms sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256 66 │ casignaturealgorithms ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256
67 │ loglevel INFO68 │ macs umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
69 │ securitykeyprovider internal70 │ pubkeyacceptedalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-ce>
71 │ xauthlocation /usr/bin/xauth 72 │ identityfile ~/.ssh/id_rsa 73 │ identityfile ~/.ssh/id_ecdsa 74 │ identityfile ~/.ssh/id_ecdsa_sk 75 │ identityfile ~/.ssh/id_ed25519 76 │ identityfile ~/.ssh/id_ed25519_sk 77 │ identityfile ~/.ssh/id_xmss 78 │ identityfile ~/.ssh/id_dsa 79 │ canonicaldomains none80 │ globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 81 │ userknownhostsfile /home/user1/.ssh/known_hosts /home/user1/.ssh/known_hosts2
82 │ logverbose none 83 │ permitremoteopen any 84 │ addkeystoagent false 85 │ forwardagent no 86 │ connecttimeout none 87 │ tunneldevice any:any 88 │ canonicalizePermittedcnames none 89 │ controlpersist no 90 │ escapechar ~ 91 │ ipqos af21 cs1 92 │ rekeylimit 0 0 93 │ streamlocalbindmask 0177 94 │ syslogfacility USER95 │ 13:30:27.781488 tramp-call-process (6) # ‘ssh -G -o ControlPath=tramp.%C 0.0.0.1’ nil nil
96 │ 13:30:27.785156 tramp-call-process (6) # 097 │ Pseudo-terminal will not be allocated because stdin is not a terminal.
98 │ host 0.0.0.1 99 │ user user1 100 │ hostname 0.0.0.1 101 │ port 22 102 │ addressfamily any 103 │ batchmode no 104 │ canonicalizefallbacklocal yes 105 │ canonicalizehostname false 106 │ checkhostip no 107 │ compression no 108 │ controlmaster false 109 │ enablesshkeysign no 110 │ clearallforwardings no 111 │ exitonforwardfailure no 112 │ fingerprinthash SHA256 113 │ forwardx11 no 114 │ forwardx11trusted no 115 │ gatewayports no 116 │ gssapiauthentication no 117 │ gssapidelegatecredentials no 118 │ hashknownhosts no 119 │ hostbasedauthentication no 120 │ identitiesonly no 121 │ kbdinteractiveauthentication yes 122 │ nohostauthenticationforlocalhost no 123 │ passwordauthentication yes 124 │ permitlocalcommand no 125 │ proxyusefdpass no 126 │ pubkeyauthentication true 127 │ requesttty auto 128 │ sessiontype default 129 │ stdinnull no 130 │ forkafterauthentication no 131 │ streamlocalbindunlink no 132 │ stricthostkeychecking ask 133 │ tcpkeepalive yes 134 │ tunnel false 135 │ verifyhostkeydns false 136 │ visualhostkey no 137 │ updatehostkeys true 138 │ enableescapecommandline no 139 │ canonicalizemaxdots 1 140 │ connectionattempts 1 141 │ forwardx11timeout 1200 142 │ numberofpasswordprompts 3 143 │ serveralivecountmax 3 144 │ serveraliveinterval 0 145 │ requiredrsasize 1024146 │ ciphers chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
147 │ controlpath tramp.1a00b371201ef2c9ec1e6cd86415704fff3b2544148 │ hostkeyalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-cert-v01@> 149 │ hostbasedacceptedalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256> 150 │ kexalgorithms sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256 151 │ casignaturealgorithms ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256
152 │ loglevel INFO153 │ macs umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
154 │ securitykeyprovider internal155 │ pubkeyacceptedalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-ce>
156 │ xauthlocation /usr/bin/xauth 157 │ identityfile ~/.ssh/id_rsa 158 │ identityfile ~/.ssh/id_ecdsa 159 │ identityfile ~/.ssh/id_ecdsa_sk 160 │ identityfile ~/.ssh/id_ed25519 161 │ identityfile ~/.ssh/id_ed25519_sk 162 │ identityfile ~/.ssh/id_xmss 163 │ identityfile ~/.ssh/id_dsa 164 │ canonicaldomains none165 │ globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 166 │ userknownhostsfile /home/user1/.ssh/known_hosts /home/user1/.ssh/known_hosts2
167 │ logverbose none 168 │ permitremoteopen any 169 │ addkeystoagent false 170 │ forwardagent no 171 │ connecttimeout none 172 │ tunneldevice any:any 173 │ canonicalizePermittedcnames none 174 │ controlpersist no 175 │ escapechar ~ 176 │ ipqos af21 cs1 177 │ rekeylimit 0 0 178 │ streamlocalbindmask 0177 179 │ syslogfacility USER180 │ 13:30:27.785240 tramp-call-process (6) # ‘ssh -G -o ControlPersist=no 0.0.0.1’ nil nil
181 │ 13:30:27.788630 tramp-call-process (6) # 0182 │ Pseudo-terminal will not be allocated because stdin is not a terminal.
183 │ host 0.0.0.1 184 │ user user1 185 │ hostname 0.0.0.1 186 │ port 22 187 │ addressfamily any 188 │ batchmode no 189 │ canonicalizefallbacklocal yes 190 │ canonicalizehostname false 191 │ checkhostip no 192 │ compression no 193 │ controlmaster false 194 │ enablesshkeysign no 195 │ clearallforwardings no 196 │ exitonforwardfailure no 197 │ fingerprinthash SHA256 198 │ forwardx11 no 199 │ forwardx11trusted no 200 │ gatewayports no 201 │ gssapiauthentication no 202 │ gssapidelegatecredentials no 203 │ hashknownhosts no 204 │ hostbasedauthentication no 205 │ identitiesonly no 206 │ kbdinteractiveauthentication yes 207 │ nohostauthenticationforlocalhost no 208 │ passwordauthentication yes 209 │ permitlocalcommand no 210 │ proxyusefdpass no 211 │ pubkeyauthentication true 212 │ requesttty auto 213 │ sessiontype default 214 │ stdinnull no 215 │ forkafterauthentication no 216 │ streamlocalbindunlink no 217 │ stricthostkeychecking ask 218 │ tcpkeepalive yes 219 │ tunnel false 220 │ verifyhostkeydns false 221 │ visualhostkey no 222 │ updatehostkeys true 223 │ enableescapecommandline no 224 │ canonicalizemaxdots 1 225 │ connectionattempts 1 226 │ forwardx11timeout 1200 227 │ numberofpasswordprompts 3 228 │ serveralivecountmax 3 229 │ serveraliveinterval 0 230 │ requiredrsasize 1024231 │ ciphers chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com 232 │ hostkeyalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-cert-v01@> 233 │ hostbasedacceptedalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256> 234 │ kexalgorithms sntrup761x25519-sha...@openssh.com,curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256 235 │ casignaturealgorithms ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25...@openssh.com,sk-ecdsa-sha2-nistp...@openssh.com,rsa-sha2-512,rsa-sha2-256
236 │ loglevel INFO237 │ macs umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
238 │ securitykeyprovider internal239 │ pubkeyacceptedalgorithms ssh-ed25519-cert-...@openssh.com,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,sk-ssh-ed25519-cert-...@openssh.com,sk-ecdsa-sha2-nistp256-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-ce>
240 │ xauthlocation /usr/bin/xauth 241 │ identityfile ~/.ssh/id_rsa 242 │ identityfile ~/.ssh/id_ecdsa 243 │ identityfile ~/.ssh/id_ecdsa_sk 244 │ identityfile ~/.ssh/id_ed25519 245 │ identityfile ~/.ssh/id_ed25519_sk 246 │ identityfile ~/.ssh/id_xmss 247 │ identityfile ~/.ssh/id_dsa 248 │ canonicaldomains none249 │ globalknownhostsfile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 250 │ userknownhostsfile /home/user1/.ssh/known_hosts /home/user1/.ssh/known_hosts2
251 │ logverbose none 252 │ permitremoteopen any 253 │ addkeystoagent false 254 │ forwardagent no 255 │ connecttimeout none 256 │ tunneldevice any:any 257 │ canonicalizePermittedcnames none 258 │ controlpersist no 259 │ escapechar ~ 260 │ ipqos af21 cs1 261 │ rekeylimit 0 0 262 │ streamlocalbindmask 0177 263 │ syslogfacility USER264 │ 13:30:27.788711 tramp-ssh-controlmaster-options (4) # Computing ControlMaster options...done
265 │ 13:30:27.788989 tramp-maybe-open-connection (6) # /bin/sh -i 266 │ 13:30:27.790897 tramp-wait-for-regexp (6) # 267 │ #$268 │ 13:30:27.791050 tramp-maybe-open-connection (3) # Sending command ‘exec ssh -o ControlMaster=auto -o ControlPath=tramp.%C -o ControlPersist=no -e none 128.40.123.56’ 269 │ 13:30:27.791080 tramp-send-command (6) # exec ssh -o ControlMaster=auto -o ControlPath=tramp.%C -o ControlPersist=no -e none 128.40.123.56 270 │ 13:30:27.791149 tramp-process-actions (3) # Waiting for prompts from remote shell... 271 │ 13:30:27.791202 tramp-process-one-action (5) # Looking for regexp "\(.*\(?:login\|user\)\(?:[[:blank:]].*\)?:[[:blank:]]*\)\'" from remote shell 272 │ 13:30:27.791262 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|decryption key\|encryption key\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|p\(?:a\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|p> 273 │ 13:30:27.791309 tramp-process-one-action (5) # Looking for regexp "\(^.*\(?:Permission denied\|Login \(?:[Ii]ncorrect\)\|Connection refused\|Connection closed\|Timeout, server not responding\.\|Sorry, try again\.\|Name or service not known\|Host key verification failed\.\|No supported authentication methods l> 274 │ 13:30:27.791345 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
275 │ ]*[#$%>] *\)\'" from remote shell276 │ 13:30:27.791383 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|^M\)[^] 277 │ #-%>]*#?[]#-%>][[:blank:]]*\(?:[[;[:digit:]]*[[:alpha:]][[:blank:]]*\)*\)\'" from remote shell 278 │ 13:30:27.791413 tramp-process-one-action (5) # Looking for regexp "\(Are you sure you want to continue connecting (yes/no\(?:/\[fingerprint]\)?)\?[[:blank:]]*\)\'" from remote shell 279 │ 13:30:27.791440 tramp-process-one-action (5) # Looking for regexp "\(\(?:Store key in cache\? (y/n.*)\|Update cached key\? (y/n, Return cancels connection)\)[[:blank:]]*\)\'" from remote shell 280 │ 13:30:27.791465 tramp-process-one-action (5) # Looking for regexp "\(\(?:TERM = (.*)\|Terminal type\? \[.*]\)[[:blank:]]*\)\'" from remote shell 281 │ 13:30:27.791490 tramp-process-one-action (5) # Looking for regexp "\(Access granted\. Press Return to begin session\. \)\'" from remote shell 282 │ 13:30:27.791549 tramp-process-one-action (5) # Looking for regexp "\(^^M*Confirm user presence for key .*[
283 │ ^M]*\)\'" from remote shell284 │ 13:30:27.791587 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 285 │ 13:30:27.791645 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’ 286 │ 13:30:27.791690 tramp-process-one-action (5) # Looking for regexp "\(.*\(?:login\|user\)\(?:[[:blank:]].*\)?:[[:blank:]]*\)\'" from remote shell 287 │ 13:30:27.791724 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|decryption key\|encryption key\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|p\(?:a\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|p> 288 │ 13:30:27.791760 tramp-process-one-action (5) # Looking for regexp "\(^.*\(?:Permission denied\|Login \(?:[Ii]ncorrect\)\|Connection refused\|Connection closed\|Timeout, server not responding\.\|Sorry, try again\.\|Name or service not known\|Host key verification failed\.\|No supported authentication methods l> 289 │ 13:30:27.791786 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
290 │ ]*[#$%>] *\)\'" from remote shell291 │ 13:30:27.791810 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|^M\)[^] 292 │ #-%>]*#?[]#-%>][[:blank:]]*\(?:[[;[:digit:]]*[[:alpha:]][[:blank:]]*\)*\)\'" from remote shell 293 │ 13:30:27.791833 tramp-process-one-action (5) # Looking for regexp "\(Are you sure you want to continue connecting (yes/no\(?:/\[fingerprint]\)?)\?[[:blank:]]*\)\'" from remote shell 294 │ 13:30:27.791856 tramp-process-one-action (5) # Looking for regexp "\(\(?:Store key in cache\? (y/n.*)\|Update cached key\? (y/n, Return cancels connection)\)[[:blank:]]*\)\'" from remote shell 295 │ 13:30:27.791880 tramp-process-one-action (5) # Looking for regexp "\(\(?:TERM = (.*)\|Terminal type\? \[.*]\)[[:blank:]]*\)\'" from remote shell 296 │ 13:30:27.791904 tramp-process-one-action (5) # Looking for regexp "\(Access granted\. Press Return to begin session\. \)\'" from remote shell 297 │ 13:30:27.791927 tramp-process-one-action (5) # Looking for regexp "\(^^M*Confirm user presence for key .*[
298 │ ^M]*\)\'" from remote shell299 │ 13:30:27.791949 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 300 │ 13:30:27.791971 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’ 301 │ 13:30:27.792008 tramp-process-one-action (5) # Looking for regexp "\(.*\(?:login\|user\)\(?:[[:blank:]].*\)?:[[:blank:]]*\)\'" from remote shell 302 │ 13:30:27.792039 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|decryption key\|encryption key\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|p\(?:a\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|p> 303 │ 13:30:27.792074 tramp-process-one-action (5) # Looking for regexp "\(^.*\(?:Permission denied\|Login \(?:[Ii]ncorrect\)\|Connection refused\|Connection closed\|Timeout, server not responding\.\|Sorry, try again\.\|Name or service not known\|Host key verification failed\.\|No supported authentication methods l> 304 │ 13:30:27.792100 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
305 │ ]*[#$%>] *\)\'" from remote shell306 │ 13:30:27.792122 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|^M\)[^] 307 │ #-%>]*#?[]#-%>][[:blank:]]*\(?:[[;[:digit:]]*[[:alpha:]][[:blank:]]*\)*\)\'" from remote shell 308 │ 13:30:27.792145 tramp-process-one-action (5) # Looking for regexp "\(Are you sure you want to continue connecting (yes/no\(?:/\[fingerprint]\)?)\?[[:blank:]]*\)\'" from remote shell 309 │ 13:30:27.792169 tramp-process-one-action (5) # Looking for regexp "\(\(?:Store key in cache\? (y/n.*)\|Update cached key\? (y/n, Return cancels connection)\)[[:blank:]]*\)\'" from remote shell 310 │ 13:30:27.792193 tramp-process-one-action (5) # Looking for regexp "\(\(?:TERM = (.*)\|Terminal type\? \[.*]\)[[:blank:]]*\)\'" from remote shell 311 │ 13:30:27.792214 tramp-process-one-action (5) # Looking for regexp "\(Access granted\. Press Return to begin session\. \)\'" from remote shell 312 │ 13:30:27.792237 tramp-process-one-action (5) # Looking for regexp "\(^^M*Confirm user presence for key .*[
313 │ ^M]*\)\'" from remote shellIt starts repeating itself freezing emacs until I unplug the smart card two minutes later:
2357243 │ 13:32:28.974595 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|^M\)[^] 2357244 │ #-%>]*#?[]#-%>][[:blank:]]*\(?:[[;[:digit:]]*[[:alpha:]][[:blank:]]*\)*\)\'" from remote shell 2357245 │ 13:32:28.974625 tramp-process-one-action (5) # Looking for regexp "\(Are you sure you want to continue connecting (yes/no\(?:/\[fingerprint]\)?)\?[[:blank:]]*\)\'" from remote shell 2357246 │ 13:32:28.974653 tramp-process-one-action (5) # Looking for regexp "\(\(?:Store key in cache\? (y/n.*)\|Update cached key\? (y/n, Return cancels connection)\)[[:blank:]]*\)\'" from remote shell 2357247 │ 13:32:28.974681 tramp-process-one-action (5) # Looking for regexp "\(\(?:TERM = (.*)\|Terminal type\? \[.*]\)[[:blank:]]*\)\'" from remote shell 2357248 │ 13:32:28.974709 tramp-process-one-action (5) # Looking for regexp "\(Access granted\. Press Return to begin session\. \)\'" from remote shell 2357249 │ 13:32:28.974736 tramp-process-one-action (5) # Looking for regexp "\(^^M*Confirm user presence for key .*[
2357250 │ ^M]*\)\'" from remote shell2357251 │ 13:32:28.974763 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 2357252 │ 13:32:28.974792 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’ 2357253 │ 13:32:28.974834 tramp-process-one-action (5) # Looking for regexp "\(.*\(?:login\|user\)\(?:[[:blank:]].*\)?:[[:blank:]]*\)\'" from remote shell 2357254 │ 13:32:28.974902 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|decryption key\|encryption key\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|p\(?:a\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord> 2357255 │ 13:32:28.974973 tramp-process-one-action (5) # Looking for regexp "\(^.*\(?:Permission denied\|Login \(?:[Ii]ncorrect\)\|Connection refused\|Connection closed\|Timeout, server not responding\.\|Sorry, try again\.\|Name or service not known\|Host key verification failed\.\|No supported authentication method> 2357256 │ 13:32:28.975006 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
2357257 │ ]*[#$%>] *\)\'" from remote shell2357258 │ 13:32:28.975033 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|^M\)[^] 2357259 │ #-%>]*#?[]#-%>][[:blank:]]*\(?:[[;[:digit:]]*[[:alpha:]][[:blank:]]*\)*\)\'" from remote shell 2357260 │ 13:32:28.975060 tramp-process-one-action (5) # Looking for regexp "\(Are you sure you want to continue connecting (yes/no\(?:/\[fingerprint]\)?)\?[[:blank:]]*\)\'" from remote shell 2357261 │ 13:32:28.975089 tramp-process-one-action (5) # Looking for regexp "\(\(?:Store key in cache\? (y/n.*)\|Update cached key\? (y/n, Return cancels connection)\)[[:blank:]]*\)\'" from remote shell 2357262 │ 13:32:28.975116 tramp-process-one-action (5) # Looking for regexp "\(\(?:TERM = (.*)\|Terminal type\? \[.*]\)[[:blank:]]*\)\'" from remote shell 2357263 │ 13:32:28.975143 tramp-process-one-action (5) # Looking for regexp "\(Access granted\. Press Return to begin session\. \)\'" from remote shell 2357264 │ 13:32:28.975170 tramp-process-one-action (5) # Looking for regexp "\(^^M*Confirm user presence for key .*[
2357265 │ ^M]*\)\'" from remote shell2357266 │ 13:32:28.975198 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 2357267 │ 13:32:28.975260 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’ 2357268 │ 13:32:28.975383 tramp-process-one-action (5) # Looking for regexp "\(.*\(?:login\|user\)\(?:[[:blank:]].*\)?:[[:blank:]]*\)\'" from remote shell 2357269 │ 13:32:28.975479 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|decryption key\|encryption key\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|p\(?:a\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord> 2357270 │ 13:32:28.975551 tramp-process-one-action (5) # Looking for regexp "\(^.*\(?:Permission denied\|Login \(?:[Ii]ncorrect\)\|Connection refused\|Connection closed\|Timeout, server not responding\.\|Sorry, try again\.\|Name or service not known\|Host key verification failed\.\|No supported authentication method> 2357271 │ 13:32:28.975613 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
2357272 │ ]*[#$%>] *\)\'" from remote shell2357273 │ 13:32:28.975677 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|^M\)[^] 2357274 │ #-%>]*#?[]#-%>][[:blank:]]*\(?:[[;[:digit:]]*[[:alpha:]][[:blank:]]*\)*\)\'" from remote shell 2357275 │ 13:32:28.975729 tramp-process-one-action (5) # Looking for regexp "\(Are you sure you want to continue connecting (yes/no\(?:/\[fingerprint]\)?)\?[[:blank:]]*\)\'" from remote shell 2357276 │ 13:32:28.975776 tramp-process-one-action (5) # Looking for regexp "\(\(?:Store key in cache\? (y/n.*)\|Update cached key\? (y/n, Return cancels connection)\)[[:blank:]]*\)\'" from remote shell 2357277 │ 13:32:28.975887 tramp-process-one-action (5) # Looking for regexp "\(\(?:TERM = (.*)\|Terminal type\? \[.*]\)[[:blank:]]*\)\'" from remote shell 2357278 │ 13:32:28.975943 tramp-process-one-action (5) # Looking for regexp "\(Access granted\. Press Return to begin session\. \)\'" from remote shell 2357279 │ 13:32:28.975974 tramp-process-one-action (5) # Looking for regexp "\(^^M*Confirm user presence for key .*[
2357280 │ ^M]*\)\'" from remote shell2357281 │ 13:32:28.976002 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 2357282 │ 13:32:28.976032 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’ 2357283 │ 13:32:28.976107 tramp-process-sentinel (5) # Sentinel called: ‘#<process *tramp/ssh 128.40.123.56*>’ ‘exited abnormally with code 255
2357284 │ ’ 2357285 │ 13:32:28.976193 tramp-process-actions (6) # 2357286 │ user1@128.40.123.56: Permission denied (publickey).2357287 │ 13:32:28.976298 tramp-process-actions (1) # File error: Tramp failed to connect. If this happens repeatedly, try
2357288 │ ‘M-x tramp-cleanup-this-connection’ 2357289 │ user1@128.40.123.56: Permission denied (publickey).2357290 │ 13:32:28.976368 tramp-process-actions (3) # Waiting for prompts from remote shell...failed 2357291 │ 13:32:28.976417 tramp-maybe-open-connection (3) # Opening connection nil for 128.40.123.56 using ssh...failed
Best, Daniel On 08/09/2023 07:50, Michael Albinus wrote:
Daniel Krajnik <krajnik....@gmail.com> writes:HiHi Daniel,I'm wondering if anyone is able to use Tramp with a gpg smart card or a gpg agent that manages the ssh socket (so acts as an ssh agent)? For me it fails with file-error "Tramp failed to connect. If this happens repeatedly, try\n ‘M-x tramp-cleanup-this-connection’"))" I tried tramp-cleanup-this-connection, but no, that didn't help. Tramp seems to work locally - I am able to "sudo-this-file" and enter pin to unlock sudo (it's managed by the smart card U2F pam module). Any suggestions how to approach debugging this would be very welcome.My crystal ball tells me that the gpg smart card communicates with Tramp with messages Tramp isn't aware of. So we need traces. Could you please start --8<---------------cut here---------------start------------->8--- # emacs -Q -l tramp --eval '(setq tramp-verbose 6)' --8<---------------cut here---------------end--------------->8--- Open the connection. There will be a debug buffer *debug tramp/ssh 128.40.123.56#48273* which should tell us more.Best wishes, DanielBest regards, Michael.
OpenPGP_0xCFC60FFCAAEC3A7D.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature