Once I connect to a remote computer using tramp. It connects but tramp keeps trying to open the connection. This is the output that is printed again and again.
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on ‘gnu’
Tramp: Opening connection for gnu using ssh...done
Tramp: Opening connection for gnu using ssh...
Tramp: Sending command ‘exec ssh -q -o ControlMaster=auto -o
ControlPath='tramp.%C' -o ControlPersist=no -e none gnu’
I don't know what's is wrong exactly. Any ideas?
Edit
The problem was not really resolved. I looked into recenf
as suggested by @MichaelAlbinus. I default recenf but nothing more. My rencenf config is below
(require 'recentf)
(setq recentf-auto-cleanup 'never) ;; disable before we start recentf!
(recentf-mode 1)
For now I'm getting away with C-g
until it stop trying to connect.
Then I defined this function when I lose patience.
(defun tramp-refresh ()
(interactive)
(recentf-cleanup)
(tramp-cleanup-all-buffers)
(tramp-cleanup-all-connections))
tramp-cleanup-all-buffers
ortramp-cleanup-all-connections
? If you want to poke around a bit before,tramp-list-connections
could be a starting point. – p_wiersig Nov 30 '16 at 10:40recentf
? It remembers old connections. – Michael Albinus Nov 30 '16 at 13:52recentf
andtramp-clean-up-all-connection
is useful. I guess the problem was with thessh-agent
on the local host. It's working fine now. Thanks. – DJJ Dec 08 '16 at 20:40ssh-agent
? Thanks – runejuhl Apr 05 '17 at 07:54