[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sudo password entry via ssh_channel_request_exec()


I have a simple libssh based client that allows a user to connect and
run commands on the server via ssh_channel_request_exec(). I was
wondering if there is a method for automatically prompting the user
for a password when running a sudo command on the server? E.g. some
way to set SUDO_ASKPASS to trigger a callback function in the libssh
client?

I already have a local password entry dialog in the client that is
used for interactive-auth and reading protected keys. It would be
great if this can also be hooked up to SUDO_ASKPASS on the server.

Archive administrator: postmaster@lists.cynapses.org