How do i upgrade a remote machine over ssh X forwarding?  [Solved]

For questions regarding system and application security
Message
Author
whsergent
Posts: 16
Joined: Sun Jun 04, 2023 6:42 am

How do i upgrade a remote machine over ssh X forwarding?

#1 Post by whsergent »

MX-packageinstaller wont start as root and if i run it as a user on the remote machine the authentication window cant be drawn.
If i run synaptic as root, X forwarding from the remote machine, it lists no upgrades.

I know the remote machine needs upgrades to be current because im running an MX linux desktop machine that has different versions of, for instance, the kernel.

So, anyway to upgrade the remote machine over ssh X forwarding without actually being logged in and in front of it with monitor, mouse and keyboard?

Or just being able to remotely upgrade it from the command line during an ssh login without x forwarding would be great too.

Thanks

User avatar
timkb4cq
Developer
Posts: 3603
Joined: Wed Jul 12, 2006 4:05 pm

Re: How do i upgrade a remote machine over ssh X forwarding?  [Solved]

#2 Post by timkb4cq »

Code: Select all

sudo apt update

Code: Select all

sudo apt upgrade
Obviously, drop the sudos if you're logged in as root.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

whsergent
Posts: 16
Joined: Sun Jun 04, 2023 6:42 am

Re: How do i upgrade a remote machine over ssh X forwarding?

#3 Post by whsergent »

Thanks, i appreciate the quick reply. I was thinking something like that but was afraid that it might lead to trouble with the installer not using official mx linux repos.

User avatar
timkb4cq
Developer
Posts: 3603
Joined: Wed Jul 12, 2006 4:05 pm

Re: How do i upgrade a remote machine over ssh X forwarding?

#4 Post by timkb4cq »

I have an old MX-16 install where this works:

Code: Select all

dbus-launch sudo /usr/bin/mx-packageinstaller
I don't have a recent MX version available via ssh at the moment to test whether that still works.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

whsergent
Posts: 16
Joined: Sun Jun 04, 2023 6:42 am

Re: How do i upgrade a remote machine over ssh X forwarding?

#5 Post by whsergent »

The first method worked nicely thank you.
Logging in as a user and trying the second method returned this:

"[sudo] password for $USER:
X11 connection rejected because of wrong authentication.
qt.qpa.xcb: could not connect to display localhost:11.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted"

Post Reply

Return to “Security”