As I posted earlier to the ntemacs list, I am using tramp with cygwin
ssh/scp succesfully for some time now. Below are some details about the
setup (again). Im am sorry I haven't found the time to write clear
instructions. I think the ssh/scp version I use solves the error
'Pseudo-terminal will not be allocated because stdin is not a terminal'.
details (as posted before):
I use cygwin version 1.1.7-1 (the latest when I installed it). The openssh
version that is included does not work with NTEmancs/tramp. Instead I used
another cygwin port:
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Mathur_Raju
You have to set thing up so that you can connect to the linux machine
without supplying a password.
Short instructions:
Create a directory $HOME/.ssh
Use ssh-keygen to generate the identity and identity.pub files and put them
in the .ssh directory.
Setting up ssh to work without requiring any passwords: You need a
destination machine to trust the source machine. So .ssh/Identity.pub
(public key) of the source machine needs to be appended to the list of keys
in ~user/.ssh/authorized_keys on the destination machine.
You should be able to connect from within cygwin bash using:
$ ssh user@machine
I have this in my .emacs to use cygwin bash as primary shell:
(part of install instructions JDE)
;; Setup Emacs to run bash as its primary shell.
(setq shell-file-name "bash")
(setq shell-command-switch "-c")
(setq explicit-shell-file-name shell-file-name)
(setenv "SHELL" shell-file-name)
(setq explicit-sh-args '("-login" "-i"))
(if (boundp 'w32-quote-process-args)
(setq w32-quote-process-args ?\")) ;; Include only for MS Windows.
Here are some setting in the customize buffer for Tramp:
Tramp Sh Program: [Hide] p:/cygwin/bin/bash
tramp-methods: [Hide]
...(more methods)..
("scp"
(tramp-connection-function tramp-open-connection-rsh)
(tramp-rsh-program "ssh")
(tramp-rcp-program "scp")
(tramp-remote-sh "/bin/sh")
(tramp-rsh-args
("-e" "none" "-t" "-P"))
(tramp-rcp-args nil)
(tramp-rcp-keep-date-arg "-p")
(tramp-su-program nil)
(tramp-su-args nil)
(tramp-encoding-command nil)
(tramp-decoding-command nil)
(tramp-encoding-function nil)
(tramp-decoding-function nil)
(tramp-telnet-program nil))
...(more methods)..
Tramp Default Method: [Hide] scp
I am not shure but i think this is it, but maybe you have to fiddle with
tramp setting some more.
Good luck, I hope this will help.
Regards, Gerrit
----- Original Message -----
From: route y isaac <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; ntemacs <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 6:47 PM
Subject: Re: using emacs and SSH
> I have cygwin already installed. How can I use that instead of Putty
> (plink)?
> thanks
> isaac
>