Re: Tramp ssh/scp NT passwords

2001-07-24 Thread Mark A. Hershberger
Joe Casadonte [EMAIL PROTECTED] writes: I've read everything I can find on how to get tramp to connect via ssh/scp from an NT box, and they all, without fail, say that you have to set it up so that you're not prompted for a password (i.e. via ssh-agent or keys). To me, this is an

Re: tramp ($Id: tramp.el,v 2.0.2.5 2001/06/15 11:45:17 grossjoh Exp $); emacs21 crashes semi-regularly

2001-06-27 Thread Mark A. Hershberger
I have the following backtrace, which I pass along on the off chance that it will be helpful. I kind of doubt it since I haven't been able to reliably reproduce this yet. (I am /the/ Test User!) Breakpoint 1, abort () at emacs.c:385 385 kill (getpid (), SIGABRT); (gdb) backtrace #0

Re: tramp ($Id: tramp.el,v 2.0.2.5 2001/06/15 11:45:17 grossjoh Exp $); emacs21 crashes semi-regularly

2001-06-27 Thread Mark A. Hershberger
[EMAIL PROTECTED] (Kai Großjohann) writes: On Fri, 22 Jun 2001, Test User wrote: I'm having problems with emacs crashing semi-regularly. Crashing. Whee! Can you run Emacs under the debugger and get a backtrace after it crashed? Can you see any pattern? Tell me when I should stop

Re: Dealing with idle timeouts

2001-06-05 Thread Mark A. Hershberger
[EMAIL PROTECTED] (Kai Großjohann) writes: Just in case someone feels inclined to implement this. Gnus automatically senses when my IMAP connection times out and reconnects. Does anyone here know enough about how it works to say if we could duplicate its functionality? --

Re: Turn off check for perl5?

2001-05-25 Thread Mark A. Hershberger
Stefan Monnier [EMAIL PROTECTED] writes: Kai == Kai Großjohann [EMAIL PROTECTED] writes: On Fri, 25 May 2001, Sven Utcke wrote: (Should Tramp assume that any Perl found is a Perl 5?) Hmm. This, of course, would be guaranteed to break once perl6 is out, and possibly on some (very

Mime without mimencode

2001-05-21 Thread Mark A. Hershberger
Here is an updated patch for my new smp method. This one detects if the remote side has mimencode and uses that if it is available. Otherwise, it uses perl to do the mimencode stuff. Some possible improvements: o Don't always send the tramp_mime* shell functions. o Use MIME::Base64 if

Mime without mimencode

2001-05-21 Thread Mark A. Hershberger
Here is an updated patch for my new smp method. This one detects if the remote side has mimencode and uses that if it is available. Otherwise, it uses perl to do the mimencode stuff. Some possible improvements: o Don't always send the tramp_mime* shell functions. o Use MIME::Base64 if

tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); double compression when copying

2001-05-04 Thread Mark A. Hershberger
This with `(auto-compression-mode)' in my .emacs file. When copying a file via tramp, tramp will attempt to compress the file again if it ends with a suffix that it recognizes as a compressed file. For example: $ echo tmp test $ gzip test $ ls -l test.gz -rw-r--r--1 mah mah

Re: tramp on NT emacs

2001-04-23 Thread Mark A. Hershberger
Keith Amidon [EMAIL PROTECTED] writes: Inspired by Mark, I've been poking around trying to get tramp working on nt-emacs 20.7 with the Cygwin ssh port. I'm really close. Hopefully someone knows what needs to be done to take this the rest of the way. I've got a quick synopsis of what I've

Re: bad writing! was: can't copy from dired or copy-file

2001-04-23 Thread Mark A. Hershberger
[EMAIL PROTECTED] (Kai Großjohann) writes: Here, ^D stands for an end of file character. Hm. Wait a second. You are on NT, right? Maybe on NT, process-send-eof does something different than on Unix? Let me have a look... No, I can't find it. The code contains an #ifdef VMS section,

Re: tramp ($Id: tramp.el,v 2.0.2.3 2001/03/28 21:44:30 grossjoh Exp $); cannot find exit status

2001-04-13 Thread Mark A. Hershberger
"KG" == Kai Grojohann [EMAIL PROTECTED] writes: KG What happens when you manually enter the value of $homepage, KG rather than using the env var? Does $homepage point to a KG directory or to a file? His problem looks very similar to the one I've been seeing with just regular

Using Tramp with stock cygwin tools and minimal configuration

2001-04-06 Thread Mark A. Hershberger
With Kai's assistance, I figured out how to use tramp with stock cygwin tools and minimal configuration of NTEmacs or tramp. In addition to posting a brief explanation here, I've posted this at http://mah.everybody.org/docs/tramp-on-nt. I hope to test this more thoroughly next Monday. These

Re: ssh.el, was: tramp on NT emacs

2001-03-30 Thread Mark A. Hershberger
[EMAIL PROTECTED] writes: Is ssh.el still being maintained? There really isn't much that would have needed to change since '98. AFAIK, the only signifigant difference between now and '98 is tramp. Mark. -- ommnes exeunt in mysterium All Things

tramp on NT emacs

2001-03-29 Thread Mark A. Hershberger
hell-file-name "bash") (setq shell-command-switch "-c"))) Once emacs is running, I `M-x shell' and in the *shell* buffer type `ssh-add'. I've had to create my own ssh-add script (which I put in ~/bin): --- begin ssh-add --- #!/bin/sh # ssh-add script for working under

Re: cygwin ssh instructions?

2001-03-28 Thread Mark A. Hershberger
[EMAIL PROTECTED] writes: Does anyone have instructions for using cygwin ssh? esp with emacs? and tramp? I had told Kai that I would put some together in the past and I just managed to figure out a kludge that I think will work for stock SSH from cygwin. I will document all of this tomorrow

Re: tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); tramp should sense if it already has root when using sudo

2001-03-15 Thread Mark A. Hershberger
[EMAIL PROTECTED] (Kai Grojohann) writes: On Thu, 15 Mar 2001, [EMAIL PROTECTED] wrote: debug: Signaling: (wrong-type-argument listp t) tramp-multi-connect-su(#process *tramp/multiu ssh#mah@localhost:sudo#root@localhost:* "sudo" "root" "localhost" "sudo -u %u -s%n")

Re: tramp ($Id: tramp.el,v 2.0.2.1 2001/02/28 18:10:31 grossjoh Exp $); tramp should sense if it already has root when using sudo

2001-03-15 Thread Mark A. Hershberger
"KG" == Kai Grojohann [EMAIL PROTECTED] writes: KG Thanks, but the interesting part is what happens during the KG execurion of tramp-multi-connect-su. That's where the `t' KG occurs which isn't a list. Ok, after installing 2.0.2.1 from FTP and a bit of futzing around with edebug

ssh in *shell* (Re: plink in *shell*)

2001-03-01 Thread Mark A. Hershberger
[EMAIL PROTECTED] writes: I'm running GNU Emacs 20.7.1 (i386-*-nt5.0.2195) using cmdproxy. I'd like to use 'plink' as an SSH client in *shell* buffers. * Can I avoid telnet-mode? Or should I install it? * If I can avoid it, how do I fix the code? * If I should

cygwin and nt-emacs

2001-02-28 Thread Mark A. Hershberger
A while back I said I was going to try to get tramp working on ntemacs. I would like to use the ssh that comes with the cygwin toolset, though, instead of putty. I spent a little bit on it, but I'd like to get it done. The problem is that ssh under ntemacs complains that it doesn't have a tty

Re: tramp ($Id: tramp.el,v 1.436 2000/12/15 23:36:40 grossjoh Exp $); only telnet methods work

2001-02-16 Thread Mark A. Hershberger
"KG" == Kai Grojohann [EMAIL PROTECTED] writes: KG I think that Daniel's recent fix might solve your problem. KG Thanks, Daniel. Mark, could you try the most recent version KG to see if it works? Yep, it's fixed. Thanks. Mark. -- So what are you going to do with more money?

Re: odd search order looking for perl?

2001-01-19 Thread Mark A. Hershberger
Kai, # Bourne shell if [ "$SHELL" = "/bin/sh" ] ; then echo bourne, bourne fi # Csh if ( "$SHELL" == "/bin/csh" ) then echo c, c endif As you can see, even the `if' command is quite different. Perhaps you were aiming at something entirely different, but if you were just

tramp ($Id: tramp.el,v 1.436 2000/12/15 23:36:40 grossjoh Exp $); only telnet methods work

2001-01-17 Thread Mark A. Hershberger
--bug report follows this line-- I've tried tu, su, sudu, multiu/telnet/sudo and of all these connection methods, only tu seems to work. This is a new (to me) machine, so it is possible that I'm doing something wacky. Here is the output after toggle-debug-on-error for one of the failing

latest tramp

2000-12-18 Thread Mark A. Hershberger
Using 1.436, my ntemacs can get a dirlisting from the remote OSF1 host. However, when trying to retrieve a file, it fails. I'll get you the exact message tomorrow, but perhaps this will help: Using the same version on a telnet to localhost on my Debian box here at the house (tu method), I get

tramp ($Id: tramp.el,v 1.424 2000/09/26 15:33:42 grossjoh Exp $); error on any usage

2000-09-27 Thread Mark A. Hershberger
Enter your bug report in this message, including as much detail as you possibly can about the problem, what you did to cause it and what the local and remote machines are. If you can give a simple set of instructions to make this bug happen reliably, please include those. Thank you for helping

tramp ($Id: tramp.el,v 1.406 2000/08/19 15:23:42 grossjoh Exp $); can't make symlinkns

2000-08-29 Thread Mark A. Hershberger
Enter your bug report in this message, including as much detail as you possibly can about the problem, what you did to cause it and what the local and remote machines are. If you can give a simple set of instructions to make this bug happen reliably, please include those. Thank you for helping

Re: tramp ($Id: tramp.el,v 1.406 2000/08/19 15:23:42 grossjoh Exp $); can't make symlinkns

2000-08-29 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG On Tue, 29 Aug 2000, Kai Großjohann wrote: Ah, yes. The backtrace comes from the (debug) statement in tramp-handle-make-symbolic-link. And that statement is there because the function isn't implemented yet. KG I have

tramp ($Id: tramp.el,v 1.406 2000/08/19 15:23:42 grossjoh Exp $); create dirs wrong

2000-08-22 Thread Mark A. Hershberger
Enter your bug report in this message, including as much detail as you possibly can about the problem, what you did to cause it and what the local and remote machines are. If you can give a simple set of instructions to make this bug happen reliably, please include those. Thank you for helping

Re: latest tramp bombs on chained sudo

2000-08-19 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG On 18 Aug 2000, Mark A. Hershberger wrote: `/r@multi:ssh#user@host:sudo#user@host:file' is bombing now. It makes the connection fine, but bombs out when sudo prompts for a password with an error like `Args out o

latest tramp bombs on chained sudo

2000-08-18 Thread Mark A. Hershberger
`/r@multi:ssh#user@host:sudo#user@host:file' is bombing now. It makes the connection fine, but bombs out when sudo prompts for a password with an error like `Args out of range: 1, 10'. Same for su on a chain. ssh chained to ssh doesn't seem to have this problem. Ah... Another test and `su'

Re: telnet method to NeXT

2000-08-18 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG Please give feedback as to how it works. Will do. I'll try to set up my NeXT again this weekend (I have some stuff to print anyway). -- Hackers view advertising as damage and route around it. -- gowen on

Re: tramp and dired on filenames

2000-08-18 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG On 26 Jul 2000, Mark A. Hershberger wrote: Tramp doesn't do the right thing for `C-x d /r:host:filename'. Example: C-x d /r:example.com:~/.bash_profile RET KG Does it now do the right thing? This particular exa

Re: tramp not able to mkdir

2000-08-18 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG On 24 Jul 2000, Mark A. Hershberger wrote: Using both multi and sm, I am unable to mkdir. Debug buffer for sm connection attached. KG I think I found it: wrong order of arguments for KG tramp-barf-unless-ok

Re: port numbers in tramp filenames

2000-08-15 Thread Mark A. Hershberger
[EMAIL PROTECTED] writes: I wish to specify a port number while using tramp to access a file. The host I'm connecting to has sshd listening on a non-standard port. So where in the filename can I specify that? I would use ~/.ssh/config. For a while, I had everybody.org on a

Re: port numbers in tramp filename

2000-08-15 Thread Mark A. Hershberger
[EMAIL PROTECTED] writes: How can I get more debug info from this? (setq tramp-debug-buffer t) -- Hackers view advertising as damage and route around it. -- gowen on slashdot.org

Re: telnet method to NeXT

2000-07-26 Thread Mark A. Hershberger
"YY" == Yuji Yamano [EMAIL PROTECTED] writes: YY Hmm. Tramp unexpected this result. YY Could you try the following patch? Better. I got logged in, used dired, but failed to load a file. Here's the debug buffer: $ ( cd / ) ; echo tramp_exit_status $? # Opening connection for [EMAIL

tramp and dired on filenames

2000-07-26 Thread Mark A. Hershberger
Tramp doesn't do the right thing for `C-x d /r:host:filename'. Example: C-x d /r:example.com:~/.bash_profile RET Resultant buffer contains: / | /r@sm:[EMAIL PROTECTED]:/home/mah: | wildcard .bash_profile* | ls: /home/mah/.bash_profile*: No such file or directory \ Tramp appears to

Re: tramp ($Id: tramp.el,v 1.393 2000/06/06 12:58:27 grossjoh Exp $); tramp doesn't seem to work with ediff

2000-07-26 Thread Mark A. Hershberger
"SM" == Skip Montanaro [EMAIL PROTECTED] writes: SM Is it possible to get a tramp+ediff combination working? It works great for me under Emacs. Perhaps this is a efs/tramp conflict? Mark.

tramp not able to mkdir

2000-07-24 Thread Mark A. Hershberger
tramp 1.396 Using both multi and sm, I am unable to mkdir. Debug buffer for sm connection attached. # Opening connection for [EMAIL PROTECTED] using sm... # Waiting 60s for shell or passwd prompt from everybody.org Last login: Mon Jul 24 21:20:24 2000 from dsl081-026-087-s Copyright (c) 1980,

yare: ssh with no net

2000-07-19 Thread Mark A. Hershberger
Here is Yet Another RegExp to add: If I've lost my 'Net connection or mistype a hostname, (open)ssh will respond with `Name or service not known'. Example: $ ssh foobar ssh: foobar: Name or service not known $ HTH, Mark. -- The worst thing about new books is that they keep us

Re: backtrace of possible tramp bug

2000-06-04 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: Also, please consider adding /usr/freeware/bin to the list of directories searched on remote machines. That is where mimencode is located on the IRIX machine I am connecting to. KG Is this a fairly standard directory on IRIX?

Re: check in by grossjoh: 'tramp/lisp tramp.el,1.373'

2000-06-02 Thread Mark A. Hershberger
Log Message: Joe Stoy suggests a missing tramp-wait-for-output. This seems to fix my problem. Mark.

Re: cvs ci 'rcp/lisp rcp.el,1.322,1.323'

2000-05-15 Thread Mark A. Hershberger
"SM" == Stefan Monnier [EMAIL PROTECTED] writes: SM PS: I wish someone had time to re-implement SM rcp-handle-file-attributes using Perl rather than ls, so as to SM get mtime and friends. What about the ls in ppt? Could you not pull code from there, or just use that specific

Re: Getting sudo to work

2000-05-06 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG You can now put the element "%u" into the su argument list, KG and it will be replaced with the user name. This should allow KG you to specify `sudo -u USER /bin/sh' as the command. Does it KG help? Sounds good, but now I

Re: Why -iLld

2000-05-05 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG Could you please M-x toggle-debug-on-error RET, then find out KG the backtrace? I wonder where it goes wrong. Signaling: (wrong-type-argument stringp t) file-name-absolute-p(t) file-truename("/r@scp:[EMAIL PROTECTED]:/usr/local"

multiu, vc, and rcp

2000-05-04 Thread Mark A. Hershberger
Is v. 1.292 supposed to have the multiu fix? I just fired up a fresh Emacs session to retest (supposing that there might have been some leftover cruft that ruined my previous attempt), and got the `Wrong type argument: stringp, ["mah" "mah"]' error again. Mark.

Re: permissions change on chains

2000-04-29 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG [EMAIL PROTECTED] (Mark A. Hershberger) writes: Using a chain like /r@multiu:ssh#[EMAIL PROTECTED]:ssh#[EMAIL PROTECTED]:/path/to/file, works fine except for one thing: the permissions of the file are not

Re: why password-prompting problem?

2000-04-28 Thread Mark A. Hershberger
"TR" == Tom Roche [EMAIL PROTECTED] writes: TR * how to get/generate identity.pub using ssh-keygen2? Try leaving off the `-e' or `-f' switch. It should then create the directory and put it in the proper place. However, it will prompt you, which I was trying to avoid. Sorry, and thanks

permissions change on chains

2000-04-25 Thread Mark A. Hershberger
Using a chain like /r@multiu:ssh#[EMAIL PROTECTED]:ssh#[EMAIL PROTECTED]:/path/to/file, works fine except for one thing: the permissions of the file are not preserved as they are normally. Mark.

Benefits of rcp.el (was Re: Some observations from first installing rcp.el)

2000-04-18 Thread Mark A. Hershberger
Now that Kai has added connection chaining and ability to use su, the benefit of rcp.el is increased by an order of magnitude. From a single Emacs session on the localhost, I can edit files owned by other users (such as root) on my local box or on boxes behind firewalls across the 'net. The

Re: Shell

2000-04-17 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG (1) The FSF doesn't like ssh and thus I'm trying to make KG rcp.el work as well as possible with plain rsh. Now that OpenSSH (http://www.openssh.com/) has been released under a BSD license and can be used without using patented

Re: support connection chains?

2000-04-17 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG If I were to add code to rcp.el to circumvent `cd', would you KG be willing to test it? Sure! I *need* this code as there is a machine that I own and admin for which I do not have the root password. Sure, I could change it to

Invalid password

2000-04-16 Thread Mark A. Hershberger
This is a rather annoying little bug: When I log in, I *must* type the password correctly the first time. If I don't then rcp.el becomes confused as the *rcp/foo ...* buffer is in an un-recognized state. For example: C-x C-f /r@tm:[EMAIL PROTECTED]: RET Password: ... RET Login failed:

Re: support connection chains?

2000-04-15 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG Okay, I can understand that. Hm. This should be easy enough to do. KG But you talk about authentication timeout. What happens when the KG shell has been idle for a while? Sorry, my fault. If you are going to just do sudo -u

Re: support connection chains?

2000-04-15 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG Hm. Suppose /xyzzy is a directory only readable by root, and KG you have sudo permissions to list the directory. Can you use KG sudo to get the same output that `cd /xyzzy ; ls -lda a*' KG would produce? Note that `ld -lda

Re: support connection chains?

2000-04-14 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG I thought it might be nifty to support a connection method KG which allows users to use a chain of commands to connect to a KG remote host. Yahoo! I was going to suggest this a while back. This would be most excellent and

Re: Errors using slm connection

2000-04-04 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG I have now tried to add more (and hopefully useful) messages. These work much better so far... Thanks. Mark.

Re: status of rcp.el quality?

2000-04-04 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: (insert-file-contents "/r@scp:everybody.org:/home/mah/.profile") gives me "File Error"... KG Huh? This is quite strange! It works for me. And since C-x KG i and C-x C-f call rcp-handle-insert-file-contents behind the

Re: status of rcp.el quality?

2000-04-03 Thread Mark A. Hershberger
"KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG Can you try to eval (insert-file-contents KG "/r:mumble@frotz:/foo") and see if that delay occurs there, KG too? Does it occur with rcp-handle-insert-file-contents KG rather than insert-file-contents? (insert-file-contents

Re: override ...

2000-03-30 Thread Mark A. Hershberger
[Forgot to Cc list.] "KG" == Kai Großjohann [EMAIL PROTECTED] writes: KG What's your backup-by-copying setup? (Don't forget the other KG backup-by-copying-when-* variables.) All nil. To be clear: $ ls -l test* -rw-r--r-- 1 mah mah0 Mar 30 17:16 test

using ffap.el with rcp.el

2000-03-10 Thread Mark A. Hershberger
I use ffap.el with emacs and really enjoy its convenience. However, it tends to confuse rcp.el. For example, say I've just opened /r@scp:everybody.org:public_html/index.html and point is on the first character ("!DOCTYPE " in this case). Now, I change my mind and decide I want to edit

New method.

2000-02-25 Thread Mark A. Hershberger
I'd like to add a method, but I'm unsure where to start. The method would allow you to login to the machine as one user and then use su to go to another user that was not allowed to log in. There are various examples of this, but in my case, I'd like to edit files that only root can touch on

rcp.el 1.80....

2000-02-25 Thread Mark A. Hershberger
This version works better for me. I get prompted when logging into an IRIX box running sshd 1.2.20 from an OpenBSD box using ssh v 1.2.26. This is good because that is what should have happened before. Also, a strange thing: I get prompted twice for the pw. The first time, the prompt shows

Re: rcp.el 1.198: bug fixes

2000-02-25 Thread Mark A. Hershberger
Kai Großjohann [EMAIL PROTECTED] writes: Mark A. Hershberger [EMAIL PROTECTED] writes: Barfs for me. So, this is working as it should? Good. Yes. Now, all I need to do is figure out which file to modify so that I can get the mimencode or uuencode in my path. There is a variable

Errors using slm connection

2000-02-25 Thread Mark A. Hershberger
I just began using rcp.el a few days ago and I like where this is headed. A problem, though: When I want open the following file, /r@slm:user_other_than_me@other_machine:/file/there I can see that rcp.el has logged me in, but it gives me the message: Remote /bin/sh didn't come up. See