我怎样允许SFTP以非SSH登陆脚本的方式登陆呢?
Issue
- 在不需要人工干预的情况下创建一个脚本,是SFTP可以通过shell脚本登陆。比如在脚本里面设定用户名和密码。而且可以设置“SFTPUSER”,这样可以只允许sftp用户用shell脚本登陆。
下面是/etc/passwd的内容
sftpuser:x:502:500::/dir:/usr/libexec/openssh/sftp-server
- 而且sftp用户不应该有‘deny ssh’的‘login shell’脚本
Environment
- Red Hat Enterprise Linux 5.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
