Re: SSH hangs when including command to execute

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

 



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
_______________________________________________
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