Centos 7.7 ssh sequent commands not working

General support questions
Post Reply
vacancy33
Posts: 2
Joined: 2019/09/26 14:20:14

Centos 7.7 ssh sequent commands not working

Post by vacancy33 » 2019/09/26 14:39:42

Hello there

After updating my operating system to centos 7.7, I started having problems with the sequent commands I used on the ssh console.

When I copy and paste 5 commands one at a time and them on ssh, only the first command is executed, the other commands do not work. I need to run each command one by one.

There's no problem with Centos 7.6.

Video
https://www.youtube.com/watch?v=_SggoeD0GVo

commaslah
Posts: 19
Joined: 2009/08/14 15:48:58

Re: Centos 7.7 ssh sequent commands not working

Post by commaslah » 2019/09/27 22:00:14

Seeing the same thing. Thought I might be crazy.

Pasting a set of commands like:

Code: Select all

systemctl enable acpid.service
systemctl start acpid.service
systemctl status acpid.service
Will run just fine on CentOS 7.6. But on CentOS 7.7 only systemctl enable acpid.service is executed. Kind of annoying since I may have a bunch of different commands to run all at once that I just copy and paste into an SSH session.

I figure it's less to do with CentOS 7.6 -> CentOS 7.7, but more to do that a setting whose default value was changed from CentOS 7.6 to CentOS 7.7

commaslah
Posts: 19
Joined: 2009/08/14 15:48:58

Re: Centos 7.7 ssh sequent commands not working

Post by commaslah » 2019/09/27 22:46:51

CentOS 7.7 added two changes to Bash:

Code: Select all

* Thu Mar 07 2019 Siteshwar Vashisht <svashisht@redhat.com> - 4.2.46-33
- Add support for bracketed paste mode
  Resolves: #1573901

* Wed Mar 06 2019 Siteshwar Vashisht <svashisht@redhat.com> - 4.2.46-32
- Add configuration option for logging bash history to syslog
  Resolves: #1160482
Perhaps one of these improperly added.

User avatar
TrevorH
Forum Moderator
Posts: 26971
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7.7 ssh sequent commands not working

Post by TrevorH » 2019/09/27 23:51:45

CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

commaslah
Posts: 19
Joined: 2009/08/14 15:48:58

Re: Centos 7.7 ssh sequent commands not working

Post by commaslah » 2019/09/28 00:26:00

Many thanks!

That does indeed seem to fix the issue. Will watch the bugtraq to see if a more permanent fix is issued.

Figured it was something like this, but had not whittled it down to polkit yet.

vacancy33
Posts: 2
Joined: 2019/09/26 14:20:14

Re: Centos 7.7 ssh sequent commands not working

Post by vacancy33 » 2019/09/28 09:18:56

Thank you for the answers.

I understand there is a bug from polkit 0.112-22.el7 that came with centos 7.7. When I went back to version 0.112-18.el7_6.1, I found that the problem was corrected.

But I'm not sure if this method is healthy.

Post Reply

Return to “CentOS 7 - General Support”