winscp
Hi, I want to share my solution because I'm also searching several time for a workaround. I'm using CentOS7 right now and try to get connetion via WinSCP (Pubkey Auth).
sshd_config
@CentOS
visudo - add following 2 entrys
WinSCP settings:
Disable keyboard-interactive @ SSH authentication settings solves the problem for me.
Shell command in SCP-settings: sudo su -
sshd_config
..
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
UsePAM yes
..
@CentOS
visudo - add following 2 entrys
username ALL=NOPASSWD: /bin/su
Defaults:username !requiretty
WinSCP settings:
Disable keyboard-interactive @ SSH authentication settings solves the problem for me.
Shell command in SCP-settings: sudo su -