Alexei
Alexei

Reputation: 15666

Windows Emacs : copy/edit files from/to remote UNIX machine?

Windows 7 (64 bit) Emacs 24.5

To explore local files (on Windows) I use package dired+. OK.

  1. How I can see (by dired+) files on remote UNIX machine?
  2. How I can edit/copy files (by dered+) from/to remote UNIX machine?

If not use Emacs, I connect to remote UNIX machine by windows console with next command:

ssh -oStrictHostKeyChecking=no [email protected]

In emacs: Try connect from Windows 7 to Unix:

/ssh:[email protected]:

Error: ssh -1 root -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none 1.2.3.4 && exit || exit

Pseudo-terminal will not be allocated because stdin is not a terminal. Could not create directory '/home/Alex/.ssh'.

ssh_askpass: exec(/usr/sbin/ssh-askpass): No such file or directory Host key verification failed

Upvotes: 2

Views: 728

Answers (2)

RecencyEffect
RecencyEffect

Reputation: 756

I just found the solution to this - you need the env variable SSH_ASKPASS pointing to git-gui--askpass. It is located in the git installation directory, in my case

(setenv SSH_ASKPASS "...Git\mingw64\libexec\git-core\git-gui--askpass")

Upvotes: 2

Drew
Drew

Reputation: 30701

Use Tramp. See the Emacs manual, node Remote Files.

In Dired, including Dired+, just use the remote-file syntax for the remote directory that you want to open in Dired mode.

Upvotes: 1

Related Questions