"Cockpit is not compatible with the software on the system" when adding welcome message through .bashrc file #18363
-
Explain what happens
Version of Cockpit215-1 Where is the problem in Cockpit?Unknown or not applicable Server operating systemUbuntu Server operating system versionUbuntu 20.04.5 LTS What browsers are you using?Chrome System logFeb 17 02:51:44 mainserver.hostname cockpit-bridge[52464]: /usr/lib/cockpit/cockpit-ssh: incorrect protocol: received invalid length prefix
Feb 17 02:51:48 mainserver.hostname sshd[58110]: error: kex_exchange_identification: read: Connection reset by peer |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Such banners tend to break automation a lot if they happen for non-interactive logins. If you do if [ -n "$PS1" ] && [ -f ~/.Banner.sh ]; then
source ~/.Banner.sh
fi Other than that, we actually circumvented such noise in commit 87151a6 in version 196. This commit is also in RHEL/CentOS 7.9. Do you see a pattern that it works when connecting to other Ubuntu machines, but it fails with the CentOS ones? In other words, I cannot reproduce this -- we have integration tests that do exactly this "stdout noise" and it works; so either this banner.sh does something more special, or there's something else which triggers this error. That said, both of these versions are really old. Ubuntu 20.04 has a newer backport, but newer versions aren't supported on RHEL/CentOS 7. |
Beta Was this translation helpful? Give feedback.
Such banners tend to break automation a lot if they happen for non-interactive logins. If you do
ssh yourmachine whoami
, do you see the banner? If so, I recommend to wrap the sourcing into the usual "is interactive?" check:Other than that, we actually circumvented such noise in commit 87151a6 in version 196. This commit is also in RHEL/CentOS 7.9. Do you see a pattern that it works when connecting to other Ubuntu machines, but it fails with the CentOS ones?
In other words, I cannot reproduce this -- we have integration tests that do exactly this "stdout noise" and it works; so either this banner.sh does something mo…