winscp askpass tipps please
I want to access files on remote servers where I'm just allowed to do .
Unfortunately I have to enter my password for sudo.
I found out that I can use SCP as file protocol and as shell I use
mypass simply contains
This works fine except for the fact that ./mypass has to contain my password.
Does anyone here have any tipp for me, how I can provide the password to sudo without having to store it in clear text?
Note: I can't change the configuration of sudo or anything of the system.
sudo su - TARGETUSER
Unfortunately I have to enter my password for sudo.
I found out that I can use SCP as file protocol and as shell I use
SUDO_ASKPASS=./mypass sudo -A su - TARGETUSER
mypass simply contains
#!/bin/sh echo 'My Secret Password'
Does anyone here have any tipp for me, how I can provide the password to sudo without having to store it in clear text?
Note: I can't change the configuration of sudo or anything of the system.