linux上增加一个用户,如何让他只能用winscp传文件,而不能用ssh客户端登入呢?
usermod -s /usr/libexec/openssh/sftp-server username
也可以直接改/etc/passwd