Fedora 35 with openssh-8.7p1-3.fc35.x86_64
When I run ssh like so connecting to a range of other Linux machines:
ssh -l root <remote host> "set -x; pwd; exit"
/root
+ pwd
+ exit
or
ssh -t -l root <remote host> "set -x; pwd; exit"
+ pwd
/root
+ exit
or
ssh -tt -l root <remote host> "set -x; pwd; exit"
+ pwd
/root
+ exit
It will never (I have let it go about ten minutes) actually exit ssh. When I ssh with no
command, I
get the bash prompt and when I type exit<nl>, it will exit ssh and return to the
local bash prompt
after around four seconds. It doesn't matter what user I connect as, that doesn't
affect the hang.
When I do the same back to my f35 machine, I don't get a hang and it returns to the
local bash
prompt immediately when I exit from an interactive session.
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.
Can anybody suggest what is causing the hang and how to avoid it?
Thanks
Linus