I set up a sftp only account some months ago.
I took roughly this guide: https://wiki.archlinux.org/index.php/SFTP_chroot
Access from linux is possible.
Now someone wants to access the sftp account via WinScP.
I did it according to these docs: https://winscp.net/eng/docs/guide_public_key
I created a public/private key pair via WinSCP and created the public key for the authorized_keys file with this command:
puttygen -O public-openssh -o foo.pub foo.ppk
I added the line of foo.pub to ~modsftp/.ssh/authorized_keys like usual.
Passwordless access from linux works, but not via putty/winscp:
===> psftp -i foo.ppk modsftp@remote-host Using username "modsftp". Server refused our key Using keyboard-interactive authentication. Password:
On the ssh server I just see this line:
sshd: Connection closed by 10.111.44.33 [preauth]
I am clueless why it works via openssh commandline tools, but not via putty/winscp.