SSH hangs when including command to execute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux