qemu+ssh connections to a remote libvirt fail as ssh banner configured

Jiri Denemark jdenemar at redhat.com
Thu Feb 10 10:14:37 UTC 2022


On Thu, Feb 10, 2022 at 17:47:43 +0800, Yalan Zhang wrote:
> Thank you! I tried /etc/motd, and it does not impact the libvirt connection.
> Happy to learn something new!

Alternatively if you really need to run commands in .bashrc which can
potentially print some output, you can put them after a check for
interactive shell:

    if [[ $- != *i* ]] ; then
        # Shell is non-interactive.  Be done now!
        return
    fi

    echo "Interactive shell here. How are you?"

Jirka




More information about the libvirt-users mailing list