On Windows, I use WinSCP to access remote computers via SCP. I usually connect via SCP and then, in the “Shell” section of the connection options, use sudo su - username to switch to the correct user. Is there a way to do this with Dolphin?
That’s just SSH + becoming a certain user, isn’t it?
If all you do is view, manage and copy files, Dolphin has default SFTP support (Network -> Add Network Folder -> Secure Shell (ssh)). You don’t need to sudo su either (and that’s not great compared to sudo --login or someshell --login or choosing the user with ssh anyway), you can just choose the user to log in as.
Otherwise the exact task you’re asking for would be better done in Konsole or in some SSH manager application.
My use case is mostly editing on remote or copy files to the remote host. Reading and copy files frome remote to local is possible for most of the files.
My current workaround is using a temporary folder and using sftp, where my standard user can write. I have to move the files from there to the target later via ssh. That’s really cumbersome.
I don’t want to use root to connect directly.
I guess the thing I don’t understand is why you’re logging in with ssh on user A and then using administrative privileges to switch to a different user B after a successful login. You can just log in with user B directly. You have administrative privileges in user A and don’t have the user B password for some reason?
Ordinarily you’d just SSH directly to user B. Once you’re authenticated as that user, you’re allowed to edit and copy files from that user in the remote host through Dolphin and Kate/KWrite normally.
Nope, I cant login with user B in this case. In this use case, i dont have admin privileges. Not on the local and not on the remote machine. Direct login is not possible, however, i can change to this user. This are company controlled devices. Using “sudo su - someuser” is possible and the only way to change to such a user. But i have to use my own AD user (unprivileged) to login.
With WinSCP on a Windows machine, this is no problem. I have a option for this. I dont know if something similar exists on Linux. I have KDE and Dolphin on a Linux client and WinSCP on a Windows Client. Maybe i can try to install other software with some ticket via a helpdesk, but i dont know, if other software allows that.