Unix ssh client has a option to create a pseudo-tty when establishing a new connection ( ssh -t).
Can this be done with WinSCP too?
We use a CentOS 6 and have blocked root login with SSH
I try to setup the login with WinSCP with a unprivileged user and the doing sodo like described here: https://winscp.net/eng/docs/faq_su
Problem now is that winscp cannot establish a connection because sudo is only allowed if a proper shell is created. Sudo configuration explains:
# # Disable "ssh hostname sudo <cmd>", because it will show the password in clear. # You have to run "ssh -t hostname sudo <cmd>". # Defaults requiretty