K
K
Kamil2020-01-11 01:59:57
linux
Kamil, 2020-01-11 01:59:57

How to get root in WinSCP?

Hello. Is it possible to gain root access in the WinSCP manager?
The bottom line is, if I log in through the terminal, I get sudo user access
But my host made it so that if I need root, then in the terminal I need to go to root sudo -s
Accordingly, when I connect through WinSCP, I have su rights, like Can I get root in WinSCP?
For the first time, I haven’t come across this before, I don’t even know which way to dig.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Manov, 2020-01-11
@Uzer44

First you need to find the sftp-server file
We remember the way!
At the very end of the file, on a new line, write:
The only thing left is to go to your WINSCP, select the desired connection - edit - additionally - SFTP in the field, add sudo /usr/lib/sftp-server
if your path sudo /usr/lib/sftp-server is different, then naturally use your own.
In different versions of distributors it happens in different ways.
good luck

C
CityCat4, 2020-01-12
@CityCat4

What for? Practice restoring a server that was accidentally killed? winscp - file copy program - why does it need root access? We copy it to our homework, then we connect via ssh and transfer it where necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question