* cannot ssh edit a file
@ 2021-02-20 9:43 Luca Ferrari
2021-02-20 13:21 ` Leo Butler
2021-02-20 15:45 ` Tim Visher
0 siblings, 2 replies; 27+ messages in thread
From: Luca Ferrari @ 2021-02-20 9:43 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
I'm using emacs 26.3 on ubuntu linux, and I cannot tramp via ssh into
a machine to edit files.
What happens is that once I digit /ssh:luca@remotehost: Emacs freezes.
I've ssh keys in place, and I cannot connect with a terminal and ssh
regularly. I've tried changing the shell of the user, since the remote
user was using zsh and I've read that some particular prompts can
confuse tramp, but nothing changed.
I've tried the same using M-x find-file, but it freezes again.
I've noted that trying to connect with a user that does not have ssh
keys prompts me immediatly for the password, but once the password is
entered, emacs freezes.
Any idea about how to investigate and fix the problem?
Thanks,
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-20 9:43 cannot ssh edit a file Luca Ferrari
@ 2021-02-20 13:21 ` Leo Butler
2021-02-20 15:22 ` Luca Ferrari
2021-02-20 15:45 ` Tim Visher
1 sibling, 1 reply; 27+ messages in thread
From: Leo Butler @ 2021-02-20 13:21 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs
Luca Ferrari <fluca1978@gmail.com> writes:
> Hi all,
> I'm using emacs 26.3 on ubuntu linux, and I cannot tramp via ssh into
> a machine to edit files.
> What happens is that once I digit /ssh:luca@remotehost: Emacs freezes.
I use ~/.ssh/config to configure my hosts. Something like:
Host remotehost
User mename
HostName aa.bb.cc.dd
Port 5555
IdentityFile ~/.ssh/remotehost
Then
C-x C-f /ssh:remotehost: RET
opens the home directory of `mename'.
To troubleshoot, I would suggest configuring the host as above and then
executing
ssh -v -v remotehost
in the terminal. That will likely give you an idea of what is wrong.
----
Alternatively, I would suggest using sshfs.
Leo
> I've ssh keys in place, and I cannot connect with a terminal and ssh
> regularly. I've tried changing the shell of the user, since the remote
> user was using zsh and I've read that some particular prompts can
> confuse tramp, but nothing changed.
> I've tried the same using M-x find-file, but it freezes again.
> I've noted that trying to connect with a user that does not have ssh
> keys prompts me immediatly for the password, but once the password is
> entered, emacs freezes.
>
> Any idea about how to investigate and fix the problem?
>
> Thanks,
> Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-20 13:21 ` Leo Butler
@ 2021-02-20 15:22 ` Luca Ferrari
2021-02-20 15:42 ` Luca Ferrari
0 siblings, 1 reply; 27+ messages in thread
From: Luca Ferrari @ 2021-02-20 15:22 UTC (permalink / raw)
To: Leo Butler; +Cc: help-gnu-emacs
On Sat, Feb 20, 2021 at 2:21 PM Leo Butler <leo.butler@umanitoba.ca> wrote:
> C-x C-f /ssh:remotehost: RET
>
No way, as I press the colon after the config hostname Emacs freezes.
Since the ssh is working fine from the terminal, even putting extra
-vvv does not provide to me any clue.
Any way to trace down what Emacs is doing?
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-20 15:22 ` Luca Ferrari
@ 2021-02-20 15:42 ` Luca Ferrari
0 siblings, 0 replies; 27+ messages in thread
From: Luca Ferrari @ 2021-02-20 15:42 UTC (permalink / raw)
To: Leo Butler; +Cc: help-gnu-emacs
On Sat, Feb 20, 2021 at 4:22 PM Luca Ferrari <fluca1978@gmail.com> wrote:
>
> On Sat, Feb 20, 2021 at 2:21 PM Leo Butler <leo.butler@umanitoba.ca> wrote:
> > C-x C-f /ssh:remotehost: RET
> >
>
> No way, as I press the colon after the config hostname Emacs freezes.
> Since the ssh is working fine from the terminal, even putting extra
> -vvv does not provide to me any clue.
> Any way to trace down what Emacs is doing?
I've also tried with the 27.1 version of Emacs, built from sources,
but nothing has changed: the behavior is the same, therefore there
must be something tied to the SSH level that I cannot understyand.
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-20 9:43 cannot ssh edit a file Luca Ferrari
2021-02-20 13:21 ` Leo Butler
@ 2021-02-20 15:45 ` Tim Visher
2021-02-20 16:35 ` Óscar Fuentes
2021-02-21 9:55 ` Luca Ferrari
1 sibling, 2 replies; 27+ messages in thread
From: Tim Visher @ 2021-02-20 15:45 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs
On Sat, Feb 20, 2021 at 4:44 AM Luca Ferrari <fluca1978@gmail.com> wrote:
> I'm using emacs 26.3 on ubuntu linux, and I cannot tramp via ssh into
> a machine to edit files.
> What happens is that once I digit /ssh:luca@remotehost: Emacs freezes.
> I've ssh keys in place, and I cannot connect with a terminal and ssh
> regularly. I've tried changing the shell of the user, since the remote
> user was using zsh and I've read that some particular prompts can
> confuse tramp, but nothing changed.
> I've tried the same using M-x find-file, but it freezes again.
> I've noted that trying to connect with a user that does not have ssh
> keys prompts me immediatly for the password, but once the password is
> entered, emacs freezes.
>
> Any idea about how to investigate and fix the problem?
>
Can you reproduce the problem from `emacs -Q`?
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-20 15:45 ` Tim Visher
@ 2021-02-20 16:35 ` Óscar Fuentes
2021-02-21 9:55 ` Luca Ferrari
1 sibling, 0 replies; 27+ messages in thread
From: Óscar Fuentes @ 2021-02-20 16:35 UTC (permalink / raw)
To: help-gnu-emacs
Tim Visher <tim.visher@gmail.com> writes:
> Can you reproduce the problem from `emacs -Q`?
Also, set tramp-verbose to 10.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-20 15:45 ` Tim Visher
2021-02-20 16:35 ` Óscar Fuentes
@ 2021-02-21 9:55 ` Luca Ferrari
2021-02-21 14:26 ` Tim Visher
2021-02-21 15:30 ` Michael Albinus
1 sibling, 2 replies; 27+ messages in thread
From: Luca Ferrari @ 2021-02-21 9:55 UTC (permalink / raw)
To: Tim Visher; +Cc: help-gnu-emacs
On Sat, Feb 20, 2021 at 4:45 PM Tim Visher <tim.visher@gmail.com> wrote:
>
> Can you reproduce the problem from `emacs -Q`?
Apparently this works a little better: it does not freeze on the colon
typing, but when I try to open a file the minibuffer keeps saying
"Waiting for prompts from remote shell..." and the connection is not
established. This happens both with remote users that have zsh or sh
as login shells.
The only difference is that with sh as default shell, the minibuffer
says "Tramp: Found remote shell prompt on miguel" (miguel being the
remote host) and nothing happens, no connection is made.
I've inspected connections from the remote host point of view, and
there is no ssh connection reported by netstat.
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-21 9:55 ` Luca Ferrari
@ 2021-02-21 14:26 ` Tim Visher
2021-02-21 15:30 ` Michael Albinus
1 sibling, 0 replies; 27+ messages in thread
From: Tim Visher @ 2021-02-21 14:26 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs
On Sun, Feb 21, 2021 at 4:56 AM Luca Ferrari <fluca1978@gmail.com> wrote:
> On Sat, Feb 20, 2021 at 4:45 PM Tim Visher <tim.visher@gmail.com> wrote:
> >
> > Can you reproduce the problem from `emacs -Q`?
>
>
> Apparently this works a little better: it does not freeze on the colon
> typing, but when I try to open a file the minibuffer keeps saying
> "Waiting for prompts from remote shell..." and the connection is not
> established. This happens both with remote users that have zsh or sh
> as login shells.
> The only difference is that with sh as default shell, the minibuffer
> says "Tramp: Found remote shell prompt on miguel" (miguel being the
> remote host) and nothing happens, no connection is made.
> I've inspected connections from the remote host point of view, and
> there is no ssh connection reported by netstat.
>
So from `emacs -Q` did you apply Óscar's advice regarding setting the TRAMP
verbosity level? This feels likely to be an ssh configuration problem on
either the local end (in ~/.ssh/config etc.) or on the remote end in your
shell init files. TRAMP can be particularly difficult to debug in this kind
of situation, though.
My post about how to only customize your prompt when the shell is
interactive may be interesting to you as well.
https://blog.twonegatives.com/post/615830090370187264/effective-emacs-how-to-have-your-fancy-prompt-and
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-21 9:55 ` Luca Ferrari
2021-02-21 14:26 ` Tim Visher
@ 2021-02-21 15:30 ` Michael Albinus
2021-02-22 7:59 ` Luca Ferrari
1 sibling, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2021-02-21 15:30 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Tim Visher
Luca Ferrari <fluca1978@gmail.com> writes:
Hi Luca,
>> Can you reproduce the problem from `emacs -Q`?
> Apparently this works a little better: it does not freeze on the colon
> typing, but when I try to open a file the minibuffer keeps saying
> "Waiting for prompts from remote shell..." and the connection is not
> established. This happens both with remote users that have zsh or sh
> as login shells.
> The only difference is that with sh as default shell, the minibuffer
> says "Tramp: Found remote shell prompt on miguel" (miguel being the
> remote host) and nothing happens, no connection is made.
> I've inspected connections from the remote host point of view, and
> there is no ssh connection reported by netstat.
Please set tramp-verbose to 10, and rerun the test. There will be a
Tramp debug buffer, which shall tell us what's happening.
> Luca
Best regards, Michael.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-21 15:30 ` Michael Albinus
@ 2021-02-22 7:59 ` Luca Ferrari
2021-02-22 8:38 ` Michael Albinus
0 siblings, 1 reply; 27+ messages in thread
From: Luca Ferrari @ 2021-02-22 7:59 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs, Tim Visher
On Sun, Feb 21, 2021 at 4:30 PM Michael Albinus <michael.albinus@gmx.de> wrote:
> Please set tramp-verbose to 10, and rerun the test. There will be a
> Tramp debug buffer, which shall tell us what's happening.
I must be doing something wrong, since I've done (setq tramp-verbose
10) and evaluated the buffer, but nothing appeared anywhere (both with
or without -Q startup).
I've changed the shell from zsh to bash, I've changed the prompt
according to suggestions to get a standard prompt, but the symptoms
are the same.
I've checked that logging into different machines works, so I've
problem only with a FreeBSD host and a Fedora host that are currently
not working fine.
I've tried to ssh with or without keys but when Emacs has to open a
file it freezes. I've also tried, as a desperate approach, to connect
via IP instead of hostname, but nothing changed.
What puzzles me is that I cannot see the connection established on the
remote side.
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-22 7:59 ` Luca Ferrari
@ 2021-02-22 8:38 ` Michael Albinus
2021-02-22 14:56 ` Luca Ferrari
0 siblings, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2021-02-22 8:38 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Tim Visher
Luca Ferrari <fluca1978@gmail.com> writes:
Hi Luca,
> I must be doing something wrong, since I've done (setq tramp-verbose
> 10) and evaluated the buffer, but nothing appeared anywhere (both with
> or without -Q startup).
For further analysis, we need the traces. Pls start
# emacs -Q --eval '(setq tramp-verbose 10)'
and run your test. After wards, there will be a buffer
*debug tramp/ssh host* which contains the traces.
> I've changed the shell from zsh to bash, I've changed the prompt
> according to suggestions to get a standard prompt, but the symptoms
> are the same.
> I've checked that logging into different machines works, so I've
> problem only with a FreeBSD host and a Fedora host that are currently
> not working fine.
> I've tried to ssh with or without keys but when Emacs has to open a
> file it freezes. I've also tried, as a desperate approach, to connect
> via IP instead of hostname, but nothing changed.
> What puzzles me is that I cannot see the connection established on the
> remote side.
I suspect it is a problem with your *local* prompt then.
> Luca
Best regards, Michael.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-22 8:38 ` Michael Albinus
@ 2021-02-22 14:56 ` Luca Ferrari
2021-02-22 15:06 ` Michael Albinus
0 siblings, 1 reply; 27+ messages in thread
From: Luca Ferrari @ 2021-02-22 14:56 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs, Tim Visher
On Mon, Feb 22, 2021 at 9:38 AM Michael Albinus <michael.albinus@gmx.de> wrote:
>
> Luca Ferrari <fluca1978@gmail.com> writes:
>
> Hi Luca,
>
> > I must be doing something wrong, since I've done (setq tramp-verbose
> > 10) and evaluated the buffer, but nothing appeared anywhere (both with
> > or without -Q startup).
>
> For further analysis, we need the traces. Pls start
>
> # emacs -Q --eval '(setq tramp-verbose 10)'
Ok, now I've seen the buffer:
15:54:09.393213 tramp-process-one-action (5) # Looking for regexp
"\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
15:54:09.393401 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.393557 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.395765 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\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة
السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ
ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:?
*\)\'" from remote shell
15:54:09.396029 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.396221 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.396889 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
15:54:09.397108 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.397264 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.397575 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
15:54:09.397768 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.397944 tramp-get-connection-property (7) # check-remote-echo nil
\)[^]#$%>398168 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
]*#?[]#$%>] *\([[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
15:54:09.398335 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.398488 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.398768 tramp-process-one-action (5) # Looking for regexp
"\(\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*\)\'" from remote shell
15:54:09.398952 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.399102 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.399296 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
15:54:09.399455 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.399623 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.399792 tramp-process-one-action (5) # Looking for regexp
"\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
15:54:09.399964 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.400113 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.400287 tramp-process-one-action (5) # Looking for regexp
"\(\)\'" from remote shell
15:54:09.400444 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.400589 tramp-get-connection-property (7) # check-remote-echo nil
15:54:09.400762 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
15:54:10.052644 tramp-process-actions (3) # Waiting for prompts from
remote shell...failed
15:54:10.053430 tramp-maybe-open-connection (3) # Opening connection
for luca@miguel using ssh...failed
15:54:10.054012 tramp-get-file-property (8) # file-truename nil
15:54:10.054318 tramp-flush-directory-property (8) #
15:54:10.054641 tramp-get-connection-property (7) # process-name nil
15:54:10.054957 tramp-get-connection-property (7) # process-name nil
15:54:10.055295 tramp-flush-connection-property (7) # *tramp/ssh
luca@miguel* (vector temp-file last-cmd-time)
15:54:10.055629 tramp-get-connection-property (7) # process-name nil
15:54:10.058778 tramp-flush-connection-property (7) # (tramp-file-name
ssh luca nil miguel nil nil nil) (process-buffer
first-password-request)
15:54:10.059234 tramp-get-connection-property (7) # process-buffer nil
15:54:10.059897 tramp-file-name-handler (1) # Interrupt received in
operation (expand-file-name /ssh:luca@miguel: nil)
Any clue?
Thanks,
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-22 14:56 ` Luca Ferrari
@ 2021-02-22 15:06 ` Michael Albinus
2021-02-22 16:00 ` Luca Ferrari
0 siblings, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2021-02-22 15:06 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Tim Visher
Luca Ferrari <fluca1978@gmail.com> writes:
Hi Luca,
>> # emacs -Q --eval '(setq tramp-verbose 10)'
>
> Ok, now I've seen the buffer:
>
> Any clue?
No. The traces do not seem to be produced with tramp-verbose 10. And
they are not complete.
Please start Emacs as I havce shown above. Run the test, and send the
*complete* debug buffer, preferred as attachment.
> Thanks,
> Luca
Best regards, Michael.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-22 15:06 ` Michael Albinus
@ 2021-02-22 16:00 ` Luca Ferrari
2021-02-22 16:45 ` Tim Visher
0 siblings, 1 reply; 27+ messages in thread
From: Luca Ferrari @ 2021-02-22 16:00 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs, Tim Visher
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
On Mon, Feb 22, 2021 at 4:06 PM Michael Albinus <michael.albinus@gmx.de> wrote:
> No. The traces do not seem to be produced with tramp-verbose 10. And
> they are not complete.
I don't know exatly what you mean by complete, however I started emacs
as follows:
% /opt/emacs/emacs26.3/bin/emacs -Q --eval '(setq tramp-verbose 10)'
and ssh-ed into the machine. I waiting for many minutes, because Emacs
is frozen, then C-g and switched to the buffer. I attach the log.
Thanks,
Luca
[-- Attachment #2: tramp.log.tar.bz2 --]
[-- Type: application/x-bzip, Size: 183360 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-22 16:00 ` Luca Ferrari
@ 2021-02-22 16:45 ` Tim Visher
2021-02-22 17:37 ` Michael Albinus
0 siblings, 1 reply; 27+ messages in thread
From: Tim Visher @ 2021-02-22 16:45 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Michael Albinus
On Mon, Feb 22, 2021 at 11:01 AM Luca Ferrari <fluca1978@gmail.com> wrote:
> On Mon, Feb 22, 2021 at 4:06 PM Michael Albinus <michael.albinus@gmx.de>
> wrote:
> > No. The traces do not seem to be produced with tramp-verbose 10. And
> > they are not complete.
>
> I don't know exatly what you mean by complete, however I started emacs
> as follows:
>
> % /opt/emacs/emacs26.3/bin/emacs -Q --eval '(setq tramp-verbose 10)'
>
> and ssh-ed into the machine. I waiting for many minutes, because Emacs
> is frozen, then C-g and switched to the buffer. I attach the log.
>
Based on the log here it looks like you are connecting to `luca@miguel` and
receiving back some odd text, namely:
```
16:56:45.839707 tramp-accept-process-output (10) # *tramp/ssh luca@miguel*
run nil
Last login: Mon Feb 22 15:58:27 2021 from n261732
%
[45mluca@miguel [49m [35m~ [37m % [39m [49m [?2004h
```
which I think indicates that whatever you did to correct your prompt on the
remote machine isn't working.
This is the exact command that TRAMP is using to attempt the connection:
```
ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o
ControlPersist=no -e none miguel
```
Are you able to connect from a shell using that command?
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-22 16:45 ` Tim Visher
@ 2021-02-22 17:37 ` Michael Albinus
2021-02-22 18:54 ` Tim Visher
0 siblings, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2021-02-22 17:37 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Tim Visher
Tim Visher <tim.visher@gmail.com> writes:
> Based on the log here it looks like you are connecting to `luca@miguel
> ` and receiving back some odd text, namely:
>
> ```
> 16:56:45.839707 tramp-accept-process-output (10) # *tramp/ssh
> luca@miguel* run nil
> Last login: Mon Feb 22 15:58:27 2021 from n261732
> %
>
>
>
> [45mluca@miguel [49m [35m~ [37m % [39m [49m [?2004h
> ```
Indeed. Looks like zle prompt from zsh. Please read the Tramp manual
about.
Best regards, Michael.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-22 17:37 ` Michael Albinus
@ 2021-02-22 18:54 ` Tim Visher
2021-02-23 8:19 ` Luca Ferrari
0 siblings, 1 reply; 27+ messages in thread
From: Tim Visher @ 2021-02-22 18:54 UTC (permalink / raw)
To: Michael Albinus; +Cc: Luca Ferrari, help-gnu-emacs
On Mon, Feb 22, 2021 at 12:37 PM Michael Albinus <michael.albinus@gmx.de>
wrote:
> Tim Visher <tim.visher@gmail.com> writes:
>
> > Based on the log here it looks like you are connecting to `luca@miguel
> > ` and receiving back some odd text, namely:
> >
> > ```
> > 16:56:45.839707 tramp-accept-process-output (10) # *tramp/ssh
> > luca@miguel* run nil
> > Last login: Mon Feb 22 15:58:27 2021 from n261732
> > %
> >
> >
> >
> > [45mluca@miguel [49m [35m~ [37m % [39m [49m [?2004h
> > ```
>
> Indeed. Looks like zle prompt from zsh. Please read the Tramp manual
> about.
>
Indeed. Right there in the FAQ.
https://www.gnu.org/software/tramp/#Frequently-Asked-Questions
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-22 18:54 ` Tim Visher
@ 2021-02-23 8:19 ` Luca Ferrari
2021-02-23 15:44 ` Tim Visher
0 siblings, 1 reply; 27+ messages in thread
From: Luca Ferrari @ 2021-02-23 8:19 UTC (permalink / raw)
To: Tim Visher; +Cc: help-gnu-emacs, Michael Albinus
On Mon, Feb 22, 2021 at 7:54 PM Tim Visher <tim.visher@gmail.com> wrote:
> Indeed. Right there in the FAQ. https://www.gnu.org/software/tramp/#Frequently-Asked-Questions
Apparently I'm too dumb to set the dumb terminal:
% ssh luca@miguel 'tail -n 1 .zshrc'
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
While I confirm I have zsh on the remote host, with the adam prompt
that uses colors, I've also tried to change the shell to bash without
any fancy prompt and nothing has changed.
As well as wth the dumb terminal Emacs still freezes.
And again, I've tried another user on the remote side that has a sh,
so no fancy prompts at all!
I'm able to connect with the tramp ssh command:
% ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o
ControlPersist=no -e none miguel
Last login: Tue Feb 23 08:58:09 2021 from n261732
luca@miguel ~ %
I've also tried to unset PS2 and PS3 when using dumb terminal, without
any succcess:
% ssh luca@miguel 'tail -n 1 .zshrc'
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && unset PS2 &&
unset PS3 && return
Then I tried to ssh to localhost, I mean I logged into the remote
host, started emacs locally, and C-x C-x /ssh:luca@localhost: and it
worked, therefore it does not seem a problem with the zsh prompt,
rather a problem with tramp on my local machine.
Any other suggestion?
Thanks,
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-23 8:19 ` Luca Ferrari
@ 2021-02-23 15:44 ` Tim Visher
2021-02-23 16:25 ` Luca Ferrari
2021-02-23 16:40 ` Michael Albinus
0 siblings, 2 replies; 27+ messages in thread
From: Tim Visher @ 2021-02-23 15:44 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Michael Albinus
On Tue, Feb 23, 2021 at 3:20 AM Luca Ferrari <fluca1978@gmail.com> wrote:
> On Mon, Feb 22, 2021 at 7:54 PM Tim Visher <tim.visher@gmail.com> wrote:
> > Indeed. Right there in the FAQ.
> https://www.gnu.org/software/tramp/#Frequently-Asked-Questions
>
> Apparently I'm too dumb to set the dumb terminal:
> % ssh luca@miguel 'tail -n 1 .zshrc'
> [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
>
> While I confirm I have zsh on the remote host, with the adam prompt
> that uses colors, I've also tried to change the shell to bash without
> any fancy prompt and nothing has changed.
> As well as wth the dumb terminal Emacs still freezes.
> And again, I've tried another user on the remote side that has a sh,
> so no fancy prompts at all!
>
> I'm able to connect with the tramp ssh command:
>
> % ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o
> ControlPersist=no -e none miguel
> Last login: Tue Feb 23 08:58:09 2021 from n261732
> luca@miguel ~ %
>
So right here I think you're still showing evidence that whatever you're
doing to attempt to change the PS1 isn't taking. The prompt (if your
customizations were working) should be `$ ` exactly, not `luca@miguel ~ %`.
Until you can use that ssh command and get a prompt that's exactly `$ ` I
don't think there's much else (I at least) can do to help you. I don't know
zsh at all so I can't help you figure out why your prompt customization
isn't helping. Perhaps zsh has a mailing list or other forum you can use?
I've also tried to unset PS2 and PS3 when using dumb terminal, without
> any succcess:
> % ssh luca@miguel 'tail -n 1 .zshrc'
> [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && unset PS2 &&
> unset PS3 && return
>
> Then I tried to ssh to localhost, I mean I logged into the remote
> host, started emacs locally, and C-x C-x /ssh:luca@localhost: and it
> worked, therefore it does not seem a problem with the zsh prompt,
> rather a problem with tramp on my local machine.
>
This is interesting but there's too much that could be different between
the emacs versions and configurations and the ssh setup for this to be
particularly useful. I guess you could do the tramp verbosity level thing
on the remote machine and verify that you're not getting the bad prompt as
you've shown you still are when connecting from your local machine using
the tramp command.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-23 15:44 ` Tim Visher
@ 2021-02-23 16:25 ` Luca Ferrari
2021-02-23 16:37 ` Tim Visher
2021-02-23 16:40 ` Michael Albinus
1 sibling, 1 reply; 27+ messages in thread
From: Luca Ferrari @ 2021-02-23 16:25 UTC (permalink / raw)
To: Tim Visher; +Cc: help-gnu-emacs, Michael Albinus
On Tue, Feb 23, 2021 at 4:45 PM Tim Visher <tim.visher@gmail.com> wrote:
>
> On Tue, Feb 23, 2021 at 3:20 AM Luca Ferrari <fluca1978@gmail.com> wrote:
>>
>> On Mon, Feb 22, 2021 at 7:54 PM Tim Visher <tim.visher@gmail.com> wrote:
>> > Indeed. Right there in the FAQ. https://www.gnu.org/software/tramp/#Frequently-Asked-Questions
>>
>> Apparently I'm too dumb to set the dumb terminal:
>> % ssh luca@miguel 'tail -n 1 .zshrc'
>> [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
>>
>> While I confirm I have zsh on the remote host, with the adam prompt
>> that uses colors, I've also tried to change the shell to bash without
>> any fancy prompt and nothing has changed.
>> As well as wth the dumb terminal Emacs still freezes.
>> And again, I've tried another user on the remote side that has a sh,
>> so no fancy prompts at all!
>>
>> I'm able to connect with the tramp ssh command:
>>
>> % ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o
>> ControlPersist=no -e none miguel
>> Last login: Tue Feb 23 08:58:09 2021 from n261732
>> luca@miguel ~ %
>
>
> So right here I think you're still showing evidence that whatever you're doing to attempt to change the PS1 isn't taking. The prompt (if your customizations were working) should be `$ ` exactly, not `luca@miguel ~ %`.
Yes, because I mistakenly added the "dumb" line to the end of the
file, instead of the head. Now I've fixed:
% ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o
ControlPersist=no -e none miguel
Last login: Tue Feb 23 17:19:39 2021 from n261732
$
however, nothing has changed, and launching emacs with tramp verbose:
% /opt/emacs/emacs26.3/bin/emacs -Q --eval '(setq tramp-verbose 10)'
and opening an ssh file I got emacs frozen as before, but the tramp
buffer does not shows anything at all even after minutes.
I'm quite depressed!
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-23 16:25 ` Luca Ferrari
@ 2021-02-23 16:37 ` Tim Visher
2021-02-23 16:44 ` Michael Albinus
0 siblings, 1 reply; 27+ messages in thread
From: Tim Visher @ 2021-02-23 16:37 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Michael Albinus
On Tue, Feb 23, 2021 at 11:25 AM Luca Ferrari <fluca1978@gmail.com> wrote:
> On Tue, Feb 23, 2021 at 4:45 PM Tim Visher <tim.visher@gmail.com> wrote:
> >
> > On Tue, Feb 23, 2021 at 3:20 AM Luca Ferrari <fluca1978@gmail.com>
> wrote:
> >>
> >> On Mon, Feb 22, 2021 at 7:54 PM Tim Visher <tim.visher@gmail.com>
> wrote:
> >> > Indeed. Right there in the FAQ.
> https://www.gnu.org/software/tramp/#Frequently-Asked-Questions
> >>
> >> Apparently I'm too dumb to set the dumb terminal:
> >> % ssh luca@miguel 'tail -n 1 .zshrc'
> >> [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
> >>
> >> While I confirm I have zsh on the remote host, with the adam prompt
> >> that uses colors, I've also tried to change the shell to bash without
> >> any fancy prompt and nothing has changed.
> >> As well as wth the dumb terminal Emacs still freezes.
> >> And again, I've tried another user on the remote side that has a sh,
> >> so no fancy prompts at all!
> >>
> >> I'm able to connect with the tramp ssh command:
> >>
> >> % ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o
> >> ControlPersist=no -e none miguel
> >> Last login: Tue Feb 23 08:58:09 2021 from n261732
> >> luca@miguel ~ %
> >
> >
> > So right here I think you're still showing evidence that whatever you're
> doing to attempt to change the PS1 isn't taking. The prompt (if your
> customizations were working) should be `$ ` exactly, not `luca@miguel ~
> %`.
>
> Yes, because I mistakenly added the "dumb" line to the end of the
> file, instead of the head. Now I've fixed:
>
> % ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o
> ControlPersist=no -e none miguel
> Last login: Tue Feb 23 17:19:39 2021 from n261732
> $
>
>
> however, nothing has changed, and launching emacs with tramp verbose:
>
> % /opt/emacs/emacs26.3/bin/emacs -Q --eval '(setq tramp-verbose 10)'
>
> and opening an ssh file I got emacs frozen as before, but the tramp
> buffer does not shows anything at all even after minutes.
>
> I'm quite depressed!
>
Unfortunately if the tramp traces aren't available I think there's nothing
else I can do to help you. I would just be sure to double check everything
to make sure you're typing everything accurately etc. I haven't seen the
TRAMP debug facilities fail like that and that's pretty battle-tested
software so I think it's likely that you're simply mistyping something.
Good luck!
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-23 16:37 ` Tim Visher
@ 2021-02-23 16:44 ` Michael Albinus
2021-03-15 15:56 ` Luca Ferrari
0 siblings, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2021-02-23 16:44 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Tim Visher
Tim Visher <tim.visher@gmail.com> writes:
Hi,
> % /opt/emacs/emacs26.3/bin/emacs -Q --eval '(setq tramp-verbose
> 10)'
>
> and opening an ssh file I got emacs frozen as before, but the
> tramp
> buffer does not shows anything at all even after minutes.
>
> I'm quite depressed!
Don't give up. We've managed such problems in the majority of cases.
> Unfortunately if the tramp traces aren't available I think there's
> nothing else I can do to help you. I would just be sure to double
> check everything to make sure you're typing everything accurately etc.
> I haven't seen the TRAMP debug facilities fail like that and that's
> pretty battle-tested software so I think it's likely that you're
> simply mistyping something.
I guess you can still apply "C-g", several times, to unblock Emacs. Send
the debug buffer then to us. The whole debug buffer, as usual.
> Good luck!
Best regards, Michael.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-23 16:44 ` Michael Albinus
@ 2021-03-15 15:56 ` Luca Ferrari
2021-03-15 16:27 ` Michael Albinus
0 siblings, 1 reply; 27+ messages in thread
From: Luca Ferrari @ 2021-03-15 15:56 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs, Tim Visher
On Tue, Feb 23, 2021 at 5:44 PM Michael Albinus <michael.albinus@gmx.de> wrote:
> I guess you can still apply "C-g", several times, to unblock Emacs. Send
> the debug buffer then to us. The whole debug buffer, as usual.
I have a little improvement on this: after installing tramp 2.5.0 the
situation has improved. Now I'm able to remotely dired into my home
folder. However, if I try to open a file, Emacs still freezes. I see
in the minibuffer a message that states "trying to exit with no
candidates".
Nothing changes using a dummy terminal in my .zshrc:
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
or changing the shell to bash (neither sh).
Here it is the tramp debug buffer content.
Thanks,
Luca
;; Emacs: 26.3 Tramp: 2.5.0.2 -*- mode: outline; -*-
;; Location: /home/luca/.emacs.d/elpa/tramp-2.5.0.2/tramp.el Git:
/26b8fe0c317915b622825877eb5e5bdae88fb2b2
16:48:09.460821 tramp-send-command (6) # test -d /home/luca
2>/dev/null; echo tramp_exit_status $?
16:48:09.461007 tramp-send-string (10) # test -d /home/luca
2>/dev/null; echo tramp_exit_status $?
16:48:09.461130 tramp-send-string (10) # Sending chunk from 0 to 58
16:48:09.461747 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:09.461883 tramp-wait-for-regexp (6) #
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:09.463453 tramp-do-file-attributes-with-perl (5) # file
attributes with perl: /home/luca/
16:48:09.463633 tramp-send-command (6) # tramp_perl_file_attributes
/home/luca/ string 2>/dev/null; echo tramp_exit_status $?
16:48:09.463756 tramp-send-string (10) # tramp_perl_file_attributes
/home/luca/ string 2>/dev/null; echo tramp_exit_status $?
16:48:09.463874 tramp-send-string (10) # Sending chunk from 0 to 85
16:48:09.467394 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 13 "luca" "luca" (24595 61647) (24655 33054) (24655 33054) 1024
16877 t 80265 -1)
16:48:09.467679 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 13 "luca" "luca" (24595 61647) (24655 33054) (24655 33054) 1024
16877 t 80265 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:09.467888 tramp-wait-for-regexp (6) #
(t 13 "luca" "luca" (24595 61647) (24655 33054) (24655 33054) 1024
16877 t 80265 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:10.598918 tramp-send-command (6) # test -d /home/luca/ssh
2>/dev/null; echo tramp_exit_status $?
16:48:10.599051 tramp-send-string (10) # test -d /home/luca/ssh
2>/dev/null; echo tramp_exit_status $?
16:48:10.599177 tramp-send-string (10) # Sending chunk from 0 to 62
16:48:10.599761 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:10.599899 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:12.030047 tramp-send-command (6) # test -d /home/luca/Invalid\
tramp\ file\ name 2>/dev/null; echo tramp_exit_status $?
16:48:12.030170 tramp-send-string (10) # test -d /home/luca/Invalid\
tramp\ file\ name 2>/dev/null; echo tramp_exit_status $?
16:48:12.030290 tramp-send-string (10) # Sending chunk from 0 to 85
16:48:12.031033 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:48:12.031209 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:12.031334 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:16.698218 tramp-send-command (6) # test -d /home/luca/git
2>/dev/null; echo tramp_exit_status $?
16:48:16.698370 tramp-send-string (10) # test -d /home/luca/git
2>/dev/null; echo tramp_exit_status $?
16:48:16.698506 tramp-send-string (10) # Sending chunk from 0 to 62
16:48:16.699294 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
16:48:16.699479 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:16.699606 tramp-wait-for-regexp (6) #
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:16.701295 tramp-do-file-attributes-with-perl (5) # file
attributes with perl: /home/luca/git
16:48:16.701487 tramp-send-command (6) # tramp_perl_file_attributes
/home/luca/git string 2>/dev/null; echo tramp_exit_status $?
16:48:16.701596 tramp-send-string (10) # tramp_perl_file_attributes
/home/luca/git string 2>/dev/null; echo tramp_exit_status $?
16:48:16.701713 tramp-send-string (10) # Sending chunk from 0 to 88
16:48:16.704970 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 5 "luca" "luca" (24596 7104) (24596 7113) (24596 7113) 512 16877 t 80263 -1)
16:48:16.705496 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 5 "luca" "luca" (24596 7104) (24596 7113) (24596 7113) 512 16877 t 80263 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:16.705664 tramp-wait-for-regexp (6) #
(t 5 "luca" "luca" (24596 7104) (24596 7113) (24596 7113) 512 16877 t 80263 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:19.128201 tramp-send-command (6) # test -d /home/luca/git/pgenv
2>/dev/null; echo tramp_exit_status $?
16:48:19.128406 tramp-send-string (10) # test -d /home/luca/git/pgenv
2>/dev/null; echo tramp_exit_status $?
16:48:19.128611 tramp-send-string (10) # Sending chunk from 0 to 68
16:48:19.129388 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:19.129613 tramp-wait-for-regexp (6) #
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:19.132312 tramp-do-file-attributes-with-perl (5) # file
attributes with perl: /home/luca/git/pgenv
16:48:19.132625 tramp-send-command (6) # tramp_perl_file_attributes
/home/luca/git/pgenv string 2>/dev/null; echo tramp_exit_status $?
16:48:19.132806 tramp-send-string (10) # tramp_perl_file_attributes
/home/luca/git/pgenv string 2>/dev/null; echo tramp_exit_status $?
16:48:19.133000 tramp-send-string (10) # Sending chunk from 0 to 94
16:48:19.136332 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 5 "luca" "luca" (24596 7113) (24596 7115) (24596 7115) 512 16877 t 80745 -1)
16:48:19.136859 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 5 "luca" "luca" (24596 7113) (24596 7115) (24596 7115) 512 16877 t 80745 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:19.137023 tramp-wait-for-regexp (6) #
(t 5 "luca" "luca" (24596 7113) (24596 7115) (24596 7115) 512 16877 t 80745 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:48:19.478632 tramp-send-command (6) # test -d
/home/luca/git/pgenv/b 2>/dev/null; echo tramp_exit_status $?
16:48:19.478791 tramp-send-string (10) # test -d
/home/luca/git/pgenv/b 2>/dev/null; echo tramp_exit_status $?
16:48:19.478928 tramp-send-string (10) # Sending chunk from 0 to 70
16:48:19.479684 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:19.479919 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:19.663411 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bi 2>/dev/null; echo tramp_exit_status $?
16:48:19.663554 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bi 2>/dev/null; echo tramp_exit_status $?
16:48:19.663711 tramp-send-string (10) # Sending chunk from 0 to 71
16:48:19.664320 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:48:19.664493 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:19.664611 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.304905 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/p 2>/dev/null; echo tramp_exit_status $?
16:48:20.305136 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/p 2>/dev/null; echo tramp_exit_status $?
16:48:20.305371 tramp-send-string (10) # Sending chunk from 0 to 74
16:48:20.306550 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.306807 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.372111 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/pg 2>/dev/null; echo tramp_exit_status $?
16:48:20.372307 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/pg 2>/dev/null; echo tramp_exit_status $?
16:48:20.372508 tramp-send-string (10) # Sending chunk from 0 to 75
16:48:20.373270 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.373421 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.502890 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/pge 2>/dev/null; echo tramp_exit_status $?
16:48:20.503023 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/pge 2>/dev/null; echo tramp_exit_status $?
16:48:20.503148 tramp-send-string (10) # Sending chunk from 0 to 76
16:48:20.503902 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.504084 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.657200 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/pgen 2>/dev/null; echo tramp_exit_status $?
16:48:20.657398 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/pgen 2>/dev/null; echo tramp_exit_status $?
16:48:20.657605 tramp-send-string (10) # Sending chunk from 0 to 77
16:48:20.658478 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:48:20.658670 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.658795 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.743642 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/pgenv 2>/dev/null; echo tramp_exit_status $?
16:48:20.743772 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/pgenv 2>/dev/null; echo tramp_exit_status $?
16:48:20.743910 tramp-send-string (10) # Sending chunk from 0 to 78
16:48:20.744715 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:48:20.744954 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:47.141517 tramp-send-command (6) # echo are you awake
16:50:47.141638 tramp-send-string (10) # echo are you awake
16:50:47.141761 tramp-send-string (10) # Sending chunk from 0 to 19
16:50:47.142401 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
are you awake
///bff4318f25c5c076078d66762f9f2d88#$
16:50:47.142565 tramp-wait-for-regexp (6) #
are you awake
///bff4318f25c5c076078d66762f9f2d88#$
16:50:47.142743 tramp-send-command (6) # test -d /home/luca
2>/dev/null; echo tramp_exit_status $?
16:50:47.142851 tramp-send-string (10) # test -d /home/luca
2>/dev/null; echo tramp_exit_status $?
16:50:47.142977 tramp-send-string (10) # Sending chunk from 0 to 58
16:50:47.143544 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:47.143677 tramp-wait-for-regexp (6) #
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:47.145346 tramp-do-file-attributes-with-perl (5) # file
attributes with perl: /home/luca/
16:50:47.145536 tramp-send-command (6) # tramp_perl_file_attributes
/home/luca/ string 2>/dev/null; echo tramp_exit_status $?
16:50:47.145647 tramp-send-string (10) # tramp_perl_file_attributes
/home/luca/ string 2>/dev/null; echo tramp_exit_status $?
16:50:47.145761 tramp-send-string (10) # Sending chunk from 0 to 85
16:50:47.149325 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 13 "luca" "luca" (24595 61647) (24655 33054) (24655 33054) 1024
16877 t 80265 -1)
16:50:47.149621 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 13 "luca" "luca" (24595 61647) (24655 33054) (24655 33054) 1024
16877 t 80265 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:47.149854 tramp-wait-for-regexp (6) #
(t 13 "luca" "luca" (24595 61647) (24655 33054) (24655 33054) 1024
16877 t 80265 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:49.574633 tramp-send-command (6) # test -d /home/luca/Invalid\
tramp\ file\ name 2>/dev/null; echo tramp_exit_status $?
16:50:49.574793 tramp-send-string (10) # test -d /home/luca/Invalid\
tramp\ file\ name 2>/dev/null; echo tramp_exit_status $?
16:50:49.574944 tramp-send-string (10) # Sending chunk from 0 to 85
16:50:49.575629 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:49.575820 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:52.261341 tramp-send-command (6) # test -d /home/luca/g
2>/dev/null; echo tramp_exit_status $?
16:50:52.261475 tramp-send-string (10) # test -d /home/luca/g
2>/dev/null; echo tramp_exit_status $?
16:50:52.261604 tramp-send-string (10) # Sending chunk from 0 to 60
16:50:52.262270 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:52.262518 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:52.388907 tramp-send-command (6) # test -d /home/luca/gi
2>/dev/null; echo tramp_exit_status $?
16:50:52.389044 tramp-send-string (10) # test -d /home/luca/gi
2>/dev/null; echo tramp_exit_status $?
16:50:52.389175 tramp-send-string (10) # Sending chunk from 0 to 61
16:50:52.389798 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:50:52.390030 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:52.390169 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:52.429686 tramp-send-command (6) # test -d /home/luca/git
2>/dev/null; echo tramp_exit_status $?
16:50:52.429826 tramp-send-string (10) # test -d /home/luca/git
2>/dev/null; echo tramp_exit_status $?
16:50:52.429964 tramp-send-string (10) # Sending chunk from 0 to 62
16:50:52.430637 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
16:50:52.430959 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:52.431190 tramp-wait-for-regexp (6) #
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:52.434331 tramp-do-file-attributes-with-perl (5) # file
attributes with perl: /home/luca/git
16:50:52.434704 tramp-send-command (6) # tramp_perl_file_attributes
/home/luca/git string 2>/dev/null; echo tramp_exit_status $?
16:50:52.434920 tramp-send-string (10) # tramp_perl_file_attributes
/home/luca/git string 2>/dev/null; echo tramp_exit_status $?
16:50:52.435146 tramp-send-string (10) # Sending chunk from 0 to 88
16:50:52.440210 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 5 "luca" "luca" (24596 7104) (24596 7113) (24596 7113) 512 16877 t 80263 -1)
16:50:52.440993 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 5 "luca" "luca" (24596 7104) (24596 7113) (24596 7113) 512 16877 t 80263 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:52.441356 tramp-wait-for-regexp (6) #
(t 5 "luca" "luca" (24596 7104) (24596 7113) (24596 7113) 512 16877 t 80263 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:53.548942 tramp-send-command (6) # test -d /home/luca/git/p
2>/dev/null; echo tramp_exit_status $?
16:50:53.549076 tramp-send-string (10) # test -d /home/luca/git/p
2>/dev/null; echo tramp_exit_status $?
16:50:53.549208 tramp-send-string (10) # Sending chunk from 0 to 64
16:50:53.549884 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:50:53.550084 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:53.550213 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:53.637238 tramp-send-command (6) # test -d /home/luca/git/pg
2>/dev/null; echo tramp_exit_status $?
16:50:53.637364 tramp-send-string (10) # test -d /home/luca/git/pg
2>/dev/null; echo tramp_exit_status $?
16:50:53.637497 tramp-send-string (10) # Sending chunk from 0 to 65
16:50:53.638220 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:50:53.638506 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:53.638733 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:53.799519 tramp-send-command (6) # test -d /home/luca/git/pge
2>/dev/null; echo tramp_exit_status $?
16:50:53.799722 tramp-send-string (10) # test -d /home/luca/git/pge
2>/dev/null; echo tramp_exit_status $?
16:50:53.799936 tramp-send-string (10) # Sending chunk from 0 to 66
16:50:53.800656 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:50:53.800948 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:53.801163 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:54.432157 tramp-send-command (6) # test -d /home/luca/git/pgenv
2>/dev/null; echo tramp_exit_status $?
16:50:54.432372 tramp-send-string (10) # test -d /home/luca/git/pgenv
2>/dev/null; echo tramp_exit_status $?
16:50:54.432589 tramp-send-string (10) # Sending chunk from 0 to 68
16:50:54.433435 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
16:50:54.433713 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:54.433936 tramp-wait-for-regexp (6) #
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:54.436957 tramp-do-file-attributes-with-perl (5) # file
attributes with perl: /home/luca/git/pgenv
16:50:54.437295 tramp-send-command (6) # tramp_perl_file_attributes
/home/luca/git/pgenv string 2>/dev/null; echo tramp_exit_status $?
16:50:54.437490 tramp-send-string (10) # tramp_perl_file_attributes
/home/luca/git/pgenv string 2>/dev/null; echo tramp_exit_status $?
16:50:54.437695 tramp-send-string (10) # Sending chunk from 0 to 94
16:50:54.441031 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 5 "luca" "luca" (24596 7113) (24596 7115) (24596 7115) 512 16877 t 80745 -1)
16:50:54.441571 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 5 "luca" "luca" (24596 7113) (24596 7115) (24596 7115) 512 16877 t 80745 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:54.441767 tramp-wait-for-regexp (6) #
(t 5 "luca" "luca" (24596 7113) (24596 7115) (24596 7115) 512 16877 t 80745 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:56.855237 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin 2>/dev/null; echo tramp_exit_status $?
16:50:56.855363 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin 2>/dev/null; echo tramp_exit_status $?
16:50:56.855488 tramp-send-string (10) # Sending chunk from 0 to 72
16:50:56.858468 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
16:50:56.858719 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:56.858851 tramp-wait-for-regexp (6) #
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.093998 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin 2>/dev/null; echo tramp_exit_status $?
16:50:57.094107 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin 2>/dev/null; echo tramp_exit_status $?
16:50:57.094268 tramp-send-string (10) # Sending chunk from 0 to 72
16:50:57.095129 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
16:50:57.095405 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.095595 tramp-wait-for-regexp (6) #
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.099000 tramp-do-file-attributes-with-perl (5) # file
attributes with perl: /home/luca/git/pgenv/bin/
16:50:57.099322 tramp-send-command (6) # tramp_perl_file_attributes
/home/luca/git/pgenv/bin/ string 2>/dev/null; echo tramp_exit_status
$?
16:50:57.099478 tramp-send-string (10) # tramp_perl_file_attributes
/home/luca/git/pgenv/bin/ string 2>/dev/null; echo tramp_exit_status
$?
16:50:57.099655 tramp-send-string (10) # Sending chunk from 0 to 99
16:50:57.103729 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 2 "luca" "luca" (24596 7115) (24596 7115) (24596 7115) 512 16877 t 80797 -1)
16:50:57.104227 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
(t 2 "luca" "luca" (24596 7115) (24596 7115) (24596 7115) 512 16877 t 80797 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.104372 tramp-wait-for-regexp (6) #
(t 2 "luca" "luca" (24596 7115) (24596 7115) (24596 7115) 512 16877 t 80797 -1)
tramp_exit_status 0
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.220871 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/p 2>/dev/null; echo tramp_exit_status $?
16:50:57.220963 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/p 2>/dev/null; echo tramp_exit_status $?
16:50:57.221062 tramp-send-string (10) # Sending chunk from 0 to 74
16:50:57.221703 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.221858 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.284909 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/pg 2>/dev/null; echo tramp_exit_status $?
16:50:57.285021 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/pg 2>/dev/null; echo tramp_exit_status $?
16:50:57.285129 tramp-send-string (10) # Sending chunk from 0 to 75
16:50:57.286134 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.286321 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.445204 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/pge 2>/dev/null; echo tramp_exit_status $?
16:50:57.445320 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/pge 2>/dev/null; echo tramp_exit_status $?
16:50:57.445447 tramp-send-string (10) # Sending chunk from 0 to 76
16:50:57.447515 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:50:57.447694 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:57.447806 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:58.033667 tramp-send-command (6) # test -d
/home/luca/git/pgenv/bin/pgenv 2>/dev/null; echo tramp_exit_status $?
16:50:58.033837 tramp-send-string (10) # test -d
/home/luca/git/pgenv/bin/pgenv 2>/dev/null; echo tramp_exit_status $?
16:50:58.034026 tramp-send-string (10) # Sending chunk from 0 to 78
16:50:58.035048 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
16:50:58.035306 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:50:58.035521 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:53:01.885861 tramp-send-command (6) # echo are you awake
16:53:01.886022 tramp-send-string (10) # echo are you awake
16:53:01.886195 tramp-send-string (10) # Sending chunk from 0 to 19
16:53:01.886964 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
are you awake
///bff4318f25c5c076078d66762f9f2d88#$
16:53:01.887187 tramp-wait-for-regexp (6) #
are you awake
///bff4318f25c5c076078d66762f9f2d88#$
16:53:01.887559 tramp-send-command (6) # test -e /home/luca/git/pge
2>/dev/null; echo tramp_exit_status $?
16:53:01.887713 tramp-send-string (10) # test -e /home/luca/git/pge
2>/dev/null; echo tramp_exit_status $?
16:53:01.887880 tramp-send-string (10) # Sending chunk from 0 to 66
16:53:01.888574 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:53:01.888785 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:53:01.897176 tramp-send-command (6) # test -e /usr/loca
2>/dev/null; echo tramp_exit_status $?
16:53:01.897326 tramp-send-string (10) # test -e /usr/loca
2>/dev/null; echo tramp_exit_status $?
16:53:01.897476 tramp-send-string (10) # Sending chunk from 0 to 57
16:53:01.898262 tramp-accept-process-output (10) # *tramp/ssh
luca@miguel* nil run t
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
16:53:01.898453 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///bff4318f25c5c076078d66762f9f2d88#$
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-03-15 15:56 ` Luca Ferrari
@ 2021-03-15 16:27 ` Michael Albinus
2021-03-18 10:40 ` Luca Ferrari
0 siblings, 1 reply; 27+ messages in thread
From: Michael Albinus @ 2021-03-15 16:27 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Tim Visher
Luca Ferrari <fluca1978@gmail.com> writes:
Hi Luca,
> Here it is the tramp debug buffer content.
Achhhh ...
As I said several times, pls start "emacs -Q", adapt the load path to
the GNU ELPA Tramp version, set tramp-verbose to 10, and after that try
what you want to do.
And please send the *whole* debug buffer, as attachment. Otherwise, we
won't be able to analyze what happens.
> Thanks,
> Luca
Best regards, Michael.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-03-15 16:27 ` Michael Albinus
@ 2021-03-18 10:40 ` Luca Ferrari
2021-03-18 11:57 ` Michael Albinus
0 siblings, 1 reply; 27+ messages in thread
From: Luca Ferrari @ 2021-03-18 10:40 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs, Tim Visher
On Mon, Mar 15, 2021 at 5:27 PM Michael Albinus <michael.albinus@gmx.de> wrote:
> As I said several times, pls start "emacs -Q", adapt the load path to
> the GNU ELPA Tramp version, set tramp-verbose to 10, and after that try
> what you want to do.
Sorry about that, I started emacs with:
% /opt/emacs/emacs26.3/bin/emacs -Q --eval '(setq tramp-verbose 10)'
then tryied to open a file with
C-x C-f /ssh:luca@miguel:git/pgenv/bin/pgenv
and I saw tramp was still the embedded version. I then reinstalled the
2.5 version and the remote file opened.
Now I need to understand why without the -Q start option, and thus my
current emacs configuration, the same tramp version is not working.
Suggestions? I'm not attaching the log of the working session, do you
need it to understand what could cause the problem when starting emacs
without -Q?
Thanks,
Luca
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-03-18 10:40 ` Luca Ferrari
@ 2021-03-18 11:57 ` Michael Albinus
0 siblings, 0 replies; 27+ messages in thread
From: Michael Albinus @ 2021-03-18 11:57 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Tim Visher
Luca Ferrari <fluca1978@gmail.com> writes:
Hi Luca,
> Now I need to understand why without the -Q start option, and thus my
> current emacs configuration, the same tramp version is not working.
>
> Suggestions? I'm not attaching the log of the working session, do you
> need it to understand what could cause the problem when starting emacs
> without -Q?
I recommend you bisect your .emacs file, until you find the guilty
configuration setting.
> Thanks,
> Luca
Best regards, Michael.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: cannot ssh edit a file
2021-02-23 15:44 ` Tim Visher
2021-02-23 16:25 ` Luca Ferrari
@ 2021-02-23 16:40 ` Michael Albinus
1 sibling, 0 replies; 27+ messages in thread
From: Michael Albinus @ 2021-02-23 16:40 UTC (permalink / raw)
To: Luca Ferrari; +Cc: help-gnu-emacs, Tim Visher
Tim Visher <tim.visher@gmail.com> writes:
> Until you can use that ssh command and get a prompt that's exactly `$
> ` I don't think there's much else (I at least) can do to help you. I
> don't know zsh at all so I can't help you figure out why your prompt
> customization isn't helping. Perhaps zsh has a mailing list or other
> forum you can use?
Tramp 2.5 has some better support for settins zsh options. You could try:
- Install Tramp 2.5.0.1 from GNU ELPA. It shall be compatible with Emacs 26.
- Assure, that your Emacs uses this Tramp package, and not the builtin
one. Once you have loaded Tramp, check variable tramp-version.
- Apply the following setting in your .emacs, prior accessing the remote
host:
(add-to-list 'tramp-connection-properties
(list (regexp-quote "/sshx:user@host:")
"remote-shell" "/usr/bin/zsh"))
"user" and "host" must be adapted.
- Use "sshx" to open a remote file, like "C-x C-f /sshx:user@host:".
Best regards, Michael.
^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2021-03-18 11:57 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-20 9:43 cannot ssh edit a file Luca Ferrari
2021-02-20 13:21 ` Leo Butler
2021-02-20 15:22 ` Luca Ferrari
2021-02-20 15:42 ` Luca Ferrari
2021-02-20 15:45 ` Tim Visher
2021-02-20 16:35 ` Óscar Fuentes
2021-02-21 9:55 ` Luca Ferrari
2021-02-21 14:26 ` Tim Visher
2021-02-21 15:30 ` Michael Albinus
2021-02-22 7:59 ` Luca Ferrari
2021-02-22 8:38 ` Michael Albinus
2021-02-22 14:56 ` Luca Ferrari
2021-02-22 15:06 ` Michael Albinus
2021-02-22 16:00 ` Luca Ferrari
2021-02-22 16:45 ` Tim Visher
2021-02-22 17:37 ` Michael Albinus
2021-02-22 18:54 ` Tim Visher
2021-02-23 8:19 ` Luca Ferrari
2021-02-23 15:44 ` Tim Visher
2021-02-23 16:25 ` Luca Ferrari
2021-02-23 16:37 ` Tim Visher
2021-02-23 16:44 ` Michael Albinus
2021-03-15 15:56 ` Luca Ferrari
2021-03-15 16:27 ` Michael Albinus
2021-03-18 10:40 ` Luca Ferrari
2021-03-18 11:57 ` Michael Albinus
2021-02-23 16:40 ` Michael Albinus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).