Subject: Re: bug#35473: accessing remote openwrt hosts gives => Wrong method specification for `ssh'

From: Michael Albinus <[email-masked]>
Date: Mon, 29 Apr 2019 11:43:52 +0200

[email-masked] writes:

Hi,

> In emacs on a Debian stable desktop:
>
>   C-x C-f /ssh:myopenwrt-host:/etc/config/
>
> remotely opens the directory on the openwrt router just fine. When a
> file in that directory (e.g. "system") is selected, emacs gives:
>
>   "Wrong method specification for `ssh'"

Hmm. Maybe you have no permissions for that file?

> If the same file is selected a second time, emacs opens an empty
> buffer.

That's normal Emacs behavior. It shows you the (empty) file from the
previous attempt.

> There is no problem accessing these files without emacs using ssh and
> scp.  FWIW, this is the relevant ssh config:
>
>   host myopenwrt-host
>     hostname          192.168.1.38
>     port              22
>     user              root
>     IdentityFile      /home/user/.ssh/id_rsa
>     ForwardX11        no

Hmm, user root. There shouldn't be permission problems.

Maybe you set tramp-verbose to 10, and try it again? There will be a
Tramp debug buffer, which you might show us.

Best regards, Michael.