Ho.
On Sat, 07 May 2022 15:45:31 -0400 C Linus Hicks wrote:
When I run ssh like so connecting to a range of other Linux
machines:
ssh -l root <remote host> "set -x; pwd; exit"
...
It will never (I have let it go about ten minutes) actually exit ssh.
...
I'm using public key auth in all cases, the remote machines are
derivitives
of RHEL 6,7,8 running in AWS and sometimes across a VPN and sometimes not.
Weird.
There is perhaps some processes spawn by some /etc/profile.d/xxx.sh script.
(or by some PAM module).
To check that:
- connect first interactively to the remote host
- from another terminal start such an ssh that hangs
- from the interative one list the processes involves in the hang
for example with pstree. Look for the most recent processes sons of some
sshd
Try perhaps adding the -n option to ssh to not give stdin to the remote
command, but I think that this will not work.
--
francis