sftp user unable to login with nologin shell.

Solution Verified - Updated -

Issue

  • sftp <SFTP_USER> unable to login with nologin shell
# <SFTP_USER>@host.exmaple.com password:
debug1: Authentication succeeded (password).
Authenticated to host.example.com ([10.0.0.1]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 2540, received 2560 bytes, in 0.3 seconds
Bytes per second: sent 8184.3, received 8248.8
debug1: Exit status 1
Received message too long 1416128883
Ensure the remote shell produces no output for non-interactive sessions.
# 

Environment

  • Red Hat Enterprise Linux 6+

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