Frederick Bartlett <[email protected]> writes: Hi Fred,
> I did have the host in my ~/.ssh/config file -- with the wrong ip > address and the wrong path to the key. (Nevertheless, Tramp had worked > for years ....) > > So I fixed that, and can now connect from the command line via ssh > <foo>, as one would expect (I had been using an aliased command). Good. > However, Tramp works only if I supply the username in the connect > string: (find-file "/ssh:<user>@<foo>:/home/<user>/<file>" t) > > If I don't, it uses a wrong name from 'tramp-default-user-alist, and > the connection fails. How does your tramp-default-user-alist look like? > Even if I remove that name from .emacs and reload, Tramp still uses > that name, so it must be getting it from elsewhere -- it's not my > local machine username, but the name that goes with an entirely > different remote server. Apply "M-x tramp-cleanup-all-connections". If there's still the same problem, call a new Emacs session via "emacs -Q". Visiting "/ssh:foo:" shall work there. Start to bisect your init file(s) (~/.emacs, at least), in order to find which part of it causes the trouble. > Thanks! > Fred Best regards, Michael.
