Users

All Posts (12)

avatar

wjtVeld

X forwarding after loged in user becomes root

avatar
avatar
avatar

I have to add the way I connect to these hosts.

First I setup an SSH Tunnel

Then I create an SSH connect using the SOCKS5 proxy.

maybe that is the problem..

X forwarding after loged in user becomes root

avatar
avatar
avatar

Hi Carl,

This is what I do on PuTTY (and DRM) that does work.

As normal user:

echo $DISPLAY

xauth list

Thern become root

sudo -s

xauth add {de resonse van xauth list}

export DISPLAY= {de response van echo $DISPLAY}

run Xterm

So this will work, but is not workable to do everytime I log in to a server.

X forwarding after loged in user becomes root

avatar
avatar
avatar

Hi,

Yes Xforwarding works with the first login. I then followed this part from the documentation:

X11 forwarding issues when using su

From the original SSH user, enter xauth list - /tmp/xauthcookies.

Switch to the new user.

Enter xauth merge /tmp/xauthcookies.

But the commands do not work..

xauth list - /tmp/xauthcookies returns:

xauth: (argv):1: bad display name "-" in "list" command

xauth: (argv):1: bad display name "/tmp/xauthcookies" in "list" command

I assume the out put of xauth needs to be in file /tmp/xauthcookies

so I did xauth list > /tmp/xauthcookies and the file contents looks like this:

unix:12 MIT-MAGIC-COOKIE-1 db0d45db0e7b28c74e1a1b121639da38

unix:13 MIT-MAGIC-COOKIE-1 ba5c9933ff08ae090bd1237e1f048969

unix:11 MIT-MAGIC-COOKIE-1 de9e2556b308e208b7d012d578e44d95

unix:10 MIT-MAGIC-COOKIE-1 2f5586b54ba66d502a34a0a611248b54

Then I become root with sudo -s

xauth merge /tmp/xauthcookies

returns:

xauth: (argv):1: unable to read any entries from file "/tmp/xauthcookies"

For some reason I'm unable to merge the file

X forwarding after loged in user becomes root

avatar
avatar
avatar

My Question:

We use our personal SSH key to remote login to linux hosts. Then we use sudo -i (or -s) to become root. But when in root “mode” we need to forward the X session.

How can I get this to work??

RDM "Object reference not set to an instance of an object"

avatar
avatar
avatar

thank you!!

This was the case!! I removed the variable and now RDM startsup fine!!

Thank You again.

RDM "Object reference not set to an instance of an object"

avatar
avatar
avatar

RDM "Object reference not set to an instance of an object"

avatar
avatar
avatar

I got the error after I upgraded to this version.

the error I get is:

NullReferenceException - Object reference not set to an instance of an object.

at Devolutions.RemoteDesktopManager.Managers.VariableManager.<>c.<.cctor>b__5_46(ConnectionEngine _, Connection connection, VariableMode _, Boolean _, Boolean _)

at Devolutions.RemoteDesktopManager.Managers.VariableManager.Replace(ConnectionEngine engine, String text, String variable, ProcessVariableAction action, Connection connection, VariableMode variableMode, Boolean isUri, Boolean isAddhoc, Int32 nesting, Boolean skipXmlEncoding)

at Devolutions.RemoteDesktopManager.Managers.VariableManager.FormatGlobal(ConnectionEngine engine, String value)

at Devolutions.RemoteDesktopManager.Business.FileExportBackupDescriptor.ReplaceVariables(String value)

at Devolutions.RemoteDesktopManager.Business.FileExportBackupDescriptor.get_IsConfigured()

at Devolutions.RemoteDesktopManager.Managers.BackupManager.IsDataSourceConfigured(BaseConnectionDataSource dataSource)

at Devolutions.RemoteDesktopManager.Managers.BackupManager.ResetBackgroundBackupTimer(BaseConnectionDataSource dataSource)

at Devolutions.RemoteDesktopManager.Managers.BackupManager.OnDataSourceChanged(Object sender, DataSourceChangedEventArgs args)

at Devolutions.RemoteDesktopManager.Managers.DataSourceManager.InvokeDataSourceChanged(BaseConnectionDataSource dataSource)

at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.set_DataSource(BaseConnectionDataSource value)

at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.set_DataSource(BaseConnectionDataSource value)

at Devolutions.RemoteDesktopManager.Managers.LockManager.ApplicationLogon(Boolean unlockMode)

at Devolutions.RemoteDesktopManager.Forms.FrmMainDocumentManager.FrmMainRibbon_Shown(Object sender, EventArgs e)

at DevExpress.XtraEditors.XtraForm.OnShown(EventArgs e)

at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

--- End of stack trace from previous location ---

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

------------------------ extended stack ------------------------

at Devolutions.RemoteDesktopManager.Forms.FrmErrorMessage.ShowErrorMessage(ConnectionEngine engine, Exception exception, String message, String title)

at Devolutions.RemoteDesktopManager.Forms.FrmErrorMessage.ShowErrorMessage(ConnectionEngine engine, Exception exception, String title)

at Devolutions.RemoteDesktopManager.Managers.LogManager.OnThreadException(Object sender, ThreadExceptionEventArgs t)

at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception ex)

at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

at System.Windows.Forms.Control.WndProc(Message& m)

at DevExpress.XtraEditors.DForm.WndProc(Message& m)

at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)

at DevExpress.XtraBars.Ribbon.RibbonForm.WndProc(Message& msg)

at Devolutions.RemoteDesktopManager.Forms.FrmMainDocumentManager.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)

at DevExpress.Utils.Taskbar.Core.FilterWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

at Windows.Win32.PInvoke.DispatchMessage(MSG* lpMsg)

at System.Windows.Forms.Application.LightThreadContext.FPushMessageLoop(msoloop uReason)

at System.Windows.Forms.Application.LightThreadContext.RunMessageLoop(msoloop reason, Boolean fullModal)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)

at Devolutions.RemoteDesktopManager.Program.Main(String[] args)

RDM "Object reference not set to an instance of an object"

avatar
avatar
avatar

modifying is not possible.

RDM "Object reference not set to an instance of an object"

avatar
avatar
avatar

oke,

When I reset the layout I can see my connections again..

but restarting the application I still get the error

"Object reference not set to an instance of an object"

RDM "Object reference not set to an instance of an object"

avatar
avatar
avatar

Just upgraded to 2025.1.21.0

during the installation I needed to install .NET update 9.0.4

After install When I start I get

"Object reference not set to an instance of an object"

Wrong SSH Language

avatar
avatar
avatar
avatar
avatar

Is this problem solved? I have the same issue.. When starting an SSH session the server "seems" to be in my local language instead of just keeping to English !!

How to Transfer files to a Linux Target?

avatar
avatar
avatar
avatar
avatar

You are not using an SSH session!

Thank you for the insight, however, it does not seem like i have the same options non the less:

1 - 12 of 12 items