WinSCP askpass tips please
I want to access files on remote servers where I'm just allowed to do
Unfortunately I have to enter my password for
I found out that I can use SCP as file protocol and as shell I use
The
This works fine except for the fact that
Does anyone here have any tip for me, how I can provide the password to
Note: I can't change the configuration of
sudo su - TARGETUSER
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'
./mypass
has to contain my password.
Does anyone here have any tip 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.