Why does Tramp hang when sending Perl scripts to the remote host?

I recognize that this is not straight setting relevant, yet I'm puzzled, and also given that Emacs is my major shows device

I am attempting to set up Tramp to connect to my screening host. I'm invoking it either making use of /ssh:host:.bashrc or /scp:host:.bashrc yet both of these faced the very same trouble, one way or another.

They get just regarding the first effort to send a perl manuscript prior to the procedure wedges and also I'm compelled to eliminate the ssh session from a customer.

As an example:

tramp: Opening connection for [email protected] using scp...
tramp: Waiting 60s for local shell to come up...
tramp: Sending command `ssh host -l username  -e none || exit'
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell on host host
tramp: Found remote shell prompt on `host'
tramp: Waiting 30s for remote `/bin/sh' to come up...
tramp: Setting up remote shell environment
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 `/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 script `tramp_file_attributes'...
tramp-wait-for-output: Process has died

This trace is making use of the scp method. The ssh method resembles this:

tramp: Opening connection for [email protected] using ssh...
tramp: Waiting 60s for local shell to come up...
tramp: Sending command `ssh host -l username  -e none || exit'
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell on host host
tramp: Found remote shell prompt on `host'
tramp: Waiting 30s for remote `/bin/sh' to come up...
tramp: Setting up remote shell environment
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 `/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-wait-for-output: Process has died

As you can see, the last point that takes place is attempting to send the Perl manuscript. The procedure is passing away due to the fact that I'm eliminating it in an additional shell, or else emacs never ever returns from this.

I'm attaching to FreeBSD 6.2-RELEASE-p5 from OSX 10.5.7, if it makes any kind of distinction, making use of Tramp 2.0.58-pre in the Carbon Emacs 22.3.1 construct.

1
2022-06-07 14:35:36
Source Share
Answers: 1

Perhaps strace on the pid of sshd on the obtaining end (the FreeBSD web server) will certainly show you where it is securing. You are mosting likely to require to adhere to youngster procedures with - f. If the pid of sshd is 3125:

sudo strace -vfp 3125 -o sshdStraceDump.txt
1
2022-06-07 15:01:42
Source