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

2022-02-13 Thread Yalan Zhang
Hi Jiri, Get it! Have tried and it works well, Thank you all! On Thu, Feb 10, 2022 at 6:14 PM Jiri Denemark wrote: > 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! >

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

2022-02-10 Thread Jiri Denemark
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 ch

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

2022-02-10 Thread Yalan Zhang
Thank you! I tried /etc/motd, and it does not impact the libvirt connection. Happy to learn something new! On Thu, Feb 10, 2022 at 4:50 PM Daniel P. Berrangé wrote: > On Thu, Feb 10, 2022 at 09:33:38AM +0100, Michal Prívozník wrote: > > On 2/10/22 09:02, Daniel P. Berrangé wrote: > > > On Thu, F

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

2022-02-10 Thread Daniel P . Berrangé
On Thu, Feb 10, 2022 at 09:33:38AM +0100, Michal Prívozník wrote: > On 2/10/22 09:02, Daniel P. Berrangé wrote: > > On Thu, Feb 10, 2022 at 09:52:52AM +0800, Yalan Zhang wrote: > >> Hi there, > >> > >> I have a system configured with ssh login banner like as below: > >> # cat ~/.bashrc > >> ... > >

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

2022-02-10 Thread Michal Prívozník
On 2/10/22 09:02, Daniel P. Berrangé wrote: > On Thu, Feb 10, 2022 at 09:52:52AM +0800, Yalan Zhang wrote: >> Hi there, >> >> I have a system configured with ssh login banner like as below: >> # cat ~/.bashrc >> ... >> echo >> "===

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

2022-02-10 Thread Daniel P . Berrangé
On Thu, Feb 10, 2022 at 09:52:52AM +0800, Yalan Zhang wrote: > Hi there, > > I have a system configured with ssh login banner like as below: > # cat ~/.bashrc > ... > echo > "=" > echo "== This machine is occupied

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

2022-02-09 Thread Yalan Zhang
Hi there, I have a system configured with ssh login banner like as below: # cat ~/.bashrc ... echo "=" echo "== This machine is occupied by xxx for testing now. If you are about to use it, contact xxx first =="