Whenever I try to do dired from one GNU/Linux (fedora 3) system to another I get the following message:
"apply: Reading directory: no such file or directory, /ssh2:address@hidden:/root/"
I'm using cvs GNU/Emacs GNU Emacs
22.0.91.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2006-12-01 on dev-2.xxxx.com
Tramp version 2.0.54.
--------------------------------------------------------------------------------
Here is relevant parts of *Messages*: -------------------------------------------------------------------------------- tramp: Opening connection for address@hidden using ssh2... tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell tramp: Found remote shell prompt. tramp: Initializing remote shell tramp: Waiting 30s for remote `/bin/sh' to come up... tramp: Setting up remote shell environment
tramp: Checking remote host type for `send-process-string' bug tramp: Determining coding system tramp: Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE' tramp: Waiting 30s for `set +o vi +o emacs'
tramp: Waiting 30s for `unset MAIL MAILCHECK MAILPATH' tramp: Waiting 30s for `unset CDPATH' tramp: Setting shell prompt tramp: Remote `/bin/sh' groks tilde expansion, good tramp: Finding command to check if file exists
tramp: Finding a suitable `ls' command tramp: Checking remote `/usr/xpg4/bin/ls' command for `-n' option tramp: Checking remote `/bin/ls' command for `-n' option tramp: Testing remote command `/bin/ls' for -n...okay
tramp: Using remote command `/bin/ls' for getting directory listings tramp: Sending the Perl `mime-encode' implementations. tramp: Sending the Perl `mime-decode' implementations. tramp: Checking remote encoding command `mimencode -b' for sanity
tramp: Checking remote encoding command `mmencode -b' for sanity tramp: Checking remote encoding command `recode data..base64' for sanity tramp: Checking remote encoding command `uuencode xxx' for sanity [4 times]
tramp: Checking remote encoding command `tramp_encode_with_module' for sanity tramp: Checking remote decoding command `tramp_decode_with_module' for sanity tramp: Checking to see if encoding/decoding commands work on remote host...done
-------------------------------------------------------------------------------- Here is *debug tramp/ssh2 address@hidden --------------------------------------------------------------------------------
# Opening connection for address@hidden using ssh2... # Waiting for prompts from remote shell # Waiting 60s for prompt from remote shell # Found remote shell prompt. # Initializing remote shell $ 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' $ $ echo foo foo $ $ TERM=dumb; export TERM $ # Checking remote host type for `send-process-string' bug $ (uname -sr) 2>/dev/null Linux 2.6.9-1.667smp
$ # Determining coding system $ echo foo ; echo bar foo bar $ # Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE' $ HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE
$ # Waiting 30s for `set +o vi +o emacs' $ set +o vi +o emacs $ # Waiting 30s for `unset MAIL MAILCHECK MAILPATH' $ unset MAIL MAILCHECK MAILPATH 1>/dev/null 2>/dev/null $ # Waiting 30s for `unset CDPATH'
$ unset CDPATH $ # Setting shell prompt $ PS1=' ///8648d89decab33da60a3b880986e2c16 '; PS2=''; PS3='' $ echo ~root /root # Remote `/bin/sh' groks tilde expansion, good
# Finding command to check if file exists $ test -e / 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ test -e /\ this\ file\ does\ not\ exist\ 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1
# Finding a suitable `ls' command # Checking remote `/usr/xpg4/bin/ls' command for `-n' option $ test -x /usr/xpg4/bin/ls 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 # Checking remote `/bin/ls' command for `-n' option
$ test -x /bin/ls 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 # Testing remote command `/bin/ls' for -n... $ /bin/ls -lnd / >/dev/null 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0
# Testing remote command `/bin/ls' for -n...okay # Using remote command `/bin/ls' for getting directory listings $ tramp_set_exit_status () { return $1 } $ test -e /usr/xpg4/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 1 $ test -e /bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /usr/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0 $ ( test -d /usr/bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /usr/sbin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /usr/sbin 2>/dev/null; echo tramp_exit_status $? )
tramp_exit_status 0 $ test -e /usr/local/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 0 $ ( test -d /usr/local/bin 2>/dev/null; echo tramp_exit_status $? ) tramp_exit_status 0 $ test -e /usr/ccs/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 1 $ test -e /local/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /local/freeware/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /local/gnu/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 1 $ test -e /usr/freeware/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /usr/pkg/bin 2>/dev/null; echo tramp_exit_status $? tramp_exit_status 1 $ test -e /usr/contrib/bin 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 1 $ PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin; export PATH $ LC_TIME=C; export LC_TIME; echo huhu huhu $ mesg n; echo huhu huhu $ biff n ; echo huhu sh: biff: command not found
huhu $ unalias ls; echo huhu sh: unalias: ls: not found huhu $ ( test / -nt / ) $ tramp_test_nt () { test -n "`find $1 -prune -newer $2 -print`" } $ tramp_uudecode () { (echo begin 600 /tmp/tramp.$$; tail +2) | uudecode
cat /tmp/tramp.$$ rm -f /tmp/tramp.$$ } $ while read d; do if test -x $d/perl5 -a -f $d/perl5; then echo tramp_executable $d/perl5; break; fi; done <<'EOF' $ /usr/xpg4/bin $ /bin $ /usr/bin
$ /usr/sbin $ /usr/local/bin $ /usr/ccs/bin $ /local/bin $ /local/freeware/bin $ /local/gnu/bin $ /usr/freeware/bin $ /usr/pkg/bin $ /usr/contrib/bin $ EOF $ while read d; do if test -x $d/perl -a -f $d/perl; then echo tramp_executable $d/perl; break; fi; done <<'EOF'
$ /usr/xpg4/bin $ /bin $ /usr/bin $ /usr/sbin $ /usr/local/bin $ /usr/ccs/bin $ /local/bin $ /local/freeware/bin $ /local/gnu/bin $ /usr/freeware/bin $ /usr/pkg/bin $ /usr/contrib/bin
$ EOF tramp_executable /usr/bin/perl # Sending the Perl `mime-encode' implementations. $ tramp_encode () { /usr/bin/perl -e ' # This script contributed by Juanma Barranquero <
address@hidden>. # Copyright (C) 2002, 2006 Free Software Foundation, Inc. use strict;
my %trans = do { my $i = 0; map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)} split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/);
};
binmode(\*STDIN);
# We read in chunks of 54 bytes, to generate output lines # of 72 chars (plus end of line) $/ = \54;
while (my $data = "" { my $pad = q();
# Only for the last chunk, and only if did not fill the last three-byte packet
if (eof) { my $mod = length($data) % 3; $pad = q(=) x (3 - $mod) if $mod; }
# Not the fastest method, but it is simple: unpack to binary string, split # by groups of 6 bits and convert back from binary to byte; then map into
# the translation table print join q(), map($trans{$_}, (substr(unpack(q(B*), $data) . q(00000), 0, 432) =~ /....../g)), $pad, qq(\n);
} ' 2>/dev/null } tramp_executable /usr/bin/perl $ tramp_encode_with_module () { perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' 2>/dev/null } tramp_executable /usr/bin/perl
# Sending the Perl `mime-decode' implementations. $ tramp_decode () { /usr/bin/perl -e ' # This script contributed by Juanma Barranquero <address@hidden>. # Copyright (C) 2002, 2006 Free Software Foundation, Inc.
use strict;
my %trans = do { my $i = 0; map {($_, substr(unpack(q(B8), chr $i++), 2, 6))} split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/) };
# We are going to accumulate into $pending to accept any line length # (we do not check they are <= 76 chars as the RFC says) my $pending = q();
while (my $data = "" {
chomp $data;
# If we find one or two =, we have reached the end and # any following data is to be discarded my $finished = $data =~ s/(==?).*/$1/; $pending .= $data;
my $len = length($pending);
my $chunk = substr($pending, 0, $len & ~3); $pending = substr($pending, $len & ~3 + 1);
# Easy method: translate from chars to (pregenerated) six-bit packets, join, # split in 8-bit chunks and convert back to char.
print join q(), map $bytes{$_}, ((join q(), map {$trans{$_} || q()} split //, $chunk) =~ /......../g);
-------------------------------------------------------------------------------- Here is *tramp/ssh2
address@hidden -------------------------------------------------------------------------------- tramp_exit_status 0
--------------------------------------------------------------------------------
Let me know if there is anything else I can provide. Thanks! --------------------------------------------------------------------------------
Emacs : GNU Emacs 22.0.91.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2006-12-01 on dev-2.xxxxx.com Package: tramp (2.0.54)