unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Yet another TRAMP on Windows question
@ 2005-10-03 21:42 stewartbryson
  2005-10-05 15:19 ` Michael Albinus
       [not found] ` <mailman.9846.1128525557.20277.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: stewartbryson @ 2005-10-03 21:42 UTC (permalink / raw)


I have worked for months now to try and get TRAMP working with cygwin
or putty on Windows. I have tried at least 100 different solutions and
none of them work. I can successfully ssh, sftp, scp, etc, to remote
hosts and do not have to provide passwords as I successfully have
ssh-agent working for the cygwin bash shell.

I've seen numerous posts from Kai et al, yet nothing works. I've had
every conceivable error message imaginable depending on who's supposed
solution I've tried, so I simply don't know which test case to post.
Below are some of the scenarios I've tried. If anyone is interesting in
walking me through a solution they know to work from the start, I'LL
TRY ANYTHING!!!

Thanks.


With sshx:

Buffer *tramp/sshx brysons@cerberus.mis.vanderbilt.edu* contents:

/home/brysons
sh-2.05b$ sh-2.05b$

Buffer *debug tramp/sshx brysons@cerberus.mis.vanderbilt.edu* contents:

# Opening connection for brysons@cerberus.mis.vanderbilt.edu using
sshx...
# Waiting 60s for local shell to come up...
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\brysons\LOCALS~1\Temp># Sending command `ssh
cerberus.mis.vanderbilt.edu -l brysons  -e none -t -t /bin/sh || exit'
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell on host
cerberus.mis.vanderbilt.edu
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|Permission denied\.\|Sorry, try again\.\|Tramp connection
closed\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(Store key in cache\? (y/n)\)\s-*" from remote
shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*" from
remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Found remote shell prompt on `cerberus.mis.vanderbilt.edu'
# Sending command to remote shell: unset HISTORY
$ unset HISTORY
# Opening connection for brysons@cerberus.mis.vanderbilt.edu using
sshx...
# Waiting 60s for local shell to come up...
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\brysons\LOCALS~1\Temp># Sending command `ssh
cerberus.mis.vanderbilt.edu -l brysons  -e none -t -t /bin/sh || exit'
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell on host
cerberus.mis.vanderbilt.edu
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|Permission denied\.\|Sorry, try again\.\|Tramp connection
closed\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(Store key in cache\? (y/n)\)\s-*" from remote
shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*" from
remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Found remote shell prompt on `cerberus.mis.vanderbilt.edu'
# Sending command to remote shell: unset HISTORY
$ unset HISTORY
$ cd ~; pwd

With plink:

Contents of *tramp/plink brysons@cerberus.mis.vanderbilt.edu* buffer:

stty -inlcr -echo kill '^U'
$ $

Contents of *debug tramp/plink brysons@cerberus.mis.vanderbilt.edu*
buffer:

# Opening connection for brysons@cerberus.mis.vanderbilt.edu using
plink...
# Waiting 60s for local shell to come up...
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\brysons\LOCALS~1\Temp># Sending command `plink
cerberus.mis.vanderbilt.edu -l brysons  -ssh || exit'
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell on host
cerberus.mis.vanderbilt.edu
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|Permission denied\.\|Sorry, try again\.\|Tramp connection
closed\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(Store key in cache\? (y/n)\)\s-*" from remote
shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*" from
remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Sending password
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|Permission denied\.\|Sorry, try again\.\|Tramp connection
closed\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(Store key in cache\? (y/n)\)\s-*" from remote
shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*" from
remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|Permission denied\.\|Sorry, try again\.\|Tramp connection
closed\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(Store key in cache\? (y/n)\)\s-*" from remote
shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*" from
remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Found remote shell prompt on `cerberus.mis.vanderbilt.edu'
# Sending command to remote shell: unset HISTORY
$ unset HISTORY
unset HISTORY
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$ # Sending command to
remote shell: unset correct
$ unset correct
unset correct
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$ # Sending command to
remote shell: unset autocorrect
$ unset autocorrect
unset autocorrect
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$ $ exec env 'ENV='
'PS1=$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec env 'ENV=' 'PS1=$ ' /bin/sh
$
$ exec env 'ENV=' 'PS1=$ ' /bin/sh
$ 
$ # Setting up remote shell environment
$ stty -inlcr -echo kill '^U'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Yet another TRAMP on Windows question
  2005-10-03 21:42 Yet another TRAMP on Windows question stewartbryson
@ 2005-10-05 15:19 ` Michael Albinus
       [not found] ` <mailman.9846.1128525557.20277.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Albinus @ 2005-10-05 15:19 UTC (permalink / raw)
  Cc: help-gnu-emacs

"stewartbryson@gmail.com" <stewartbryson@gmail.com> writes:

> If anyone is interesting in walking me through a solution they know
> to work from the start, I'LL TRY ANYTHING!!!

I couldn't resist :-)

Your posted traces show that you have logged onto the remote host
already. Tramp did start to send initial commands to the remote host.
That's good.

Nevertheless, the traces are not sufficient, at least to me. So maybe
you do the following:

(setq tramp-verbose 10
      tramp-debug-buffer 't)

Then you try it again, preferred with the plink method. When the
problem happens again, please submit a bug report via
'M-x tramp-submit-bug' - it will provide more information. Please
append the full contents of your *tramp/plink ...* and
*debug tramp/plink ...* buffers.

> Thanks.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Yet another TRAMP on Windows question
       [not found] ` <mailman.9846.1128525557.20277.help-gnu-emacs@gnu.org>
@ 2005-10-05 18:01   ` stewartbryson
  0 siblings, 0 replies; 3+ messages in thread
From: stewartbryson @ 2005-10-05 18:01 UTC (permalink / raw)


Michael: thanks for taking up the cause. I really appreciate it.

>Nevertheless, the traces are not sufficient, at least to me. So maybe
>you do the following:

>(setq tramp-verbose 10
>      tramp-debug-buffer 't)

I already have the above mentioned variables set: tramp-verbose is 10
and tramp-debug-buffer is true. The traces I posted were run with those
parameters set. I reran the plink example and below is what I got:

the contentes of *tramp/plink brysons@cerberus.mis.vanderbilt.edu*:

stty -inlcr -echo kill '^U'
$ $

the contents of *debug tramp/plink
brysons@cerberus.mis.vanderbilt.edu*:

# Opening connection for brysons@cerberus.mis.vanderbilt.edu using
plink...
# Waiting 60s for local shell to come up...
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\brysons\LOCALS~1\Temp># Sending command `plink
cerberus.mis.vanderbilt.edu -l brysons  -ssh || exit'
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell on host
cerberus.mis.vanderbilt.edu
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|Permission denied\.\|Sorry, try again\.\|Tramp connection
closed\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(Store key in cache\? (y/n)\)\s-*" from remote
shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*" from
remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Sending password
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|Permission denied\.\|Sorry, try again\.\|Tramp connection
closed\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(Store key in cache\? (y/n)\)\s-*" from remote
shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*" from
remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host
key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service
not known\|Permission denied\.\|Sorry, try again\.\|Tramp connection
closed\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting
(yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(Store key in cache\? (y/n)\)\s-*" from remote
shell
# Looking for regexp "\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*" from
remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase.*\):_? *" from
remote shell
# Looking for regexp ".*ogin: *" from remote shell
# Looking for regexp "^[^#$%>
]*[#$%>] *" from remote shell
# Found remote shell prompt on `cerberus.mis.vanderbilt.edu'
# Sending command to remote shell: unset HISTORY
$ unset HISTORY
unset HISTORY
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$ # Sending command to
remote shell: unset correct
$ unset correct
unset correct
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$ # Sending command to
remote shell: unset autocorrect
$ unset autocorrect
unset autocorrect
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$
_]0;brysons@cerberus:~ [brysons@cerberus brysons]$ $ exec env 'ENV='
'PS1=$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
exec env 'ENV=' 'PS1=$ ' /bin/sh
$
$ exec env 'ENV=' 'PS1=$ ' /bin/sh
$
$ # Setting up remote shell environment
$ stty -inlcr -echo kill '^U'
stty -inlcr -echo kill '^U'
$ $ [[Regexp `\(^[^#$%>
]*[#$%>] *\|^[^#$%>
]*[#$%>] *\(_\[[0-9;]*[a-zA-Z] *\)*\)\'' not found in 30 secs]]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-05 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-03 21:42 Yet another TRAMP on Windows question stewartbryson
2005-10-05 15:19 ` Michael Albinus
     [not found] ` <mailman.9846.1128525557.20277.help-gnu-emacs@gnu.org>
2005-10-05 18:01   ` stewartbryson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).