Translated message

A translation of this page exists in English.

我怎样允许SFTP以非SSH登陆脚本的方式登陆呢?

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content