My Oracle Support Banner

Unable to use sftp(1) when user shell is rksh(1) (Doc ID 1374511.1)

Last updated on FEBRUARY 01, 2022

Applies to:

Solaris Operating System - Version 10 9/10 U9 to 11 11/11 [Release 10.0 to 11.0]
Information in this document applies to any platform.


Running "sftp" on a SSH client becomes unsuccessful and gets the "Connection closed" message when the target user is using "rksh" as its login shell on the SSH server.


Patch 145044-03 (Solaris 10 Sparc) or 145045-03 (Solaris 10 X86) has changed "rksh" to correctly enforce restrictions on command executions.

Patch-ID# 145044-03 Synopsis: SunOS 5.10: ksh pfksh rksh xargs sh patch

Patch-ID# 145045-03 Synopsis: SunOS 5.10_x86: ksh pfksh rksh xargs sh patch


145044-03 or 145045-03 and above fixes the following bug:

Bug 15010761 CR# 4302187 rksh allows user to run commands with '/' in them: regression via 1262257


the bugfix is also in Solaris 8 and Solaris 9

110662-26 5.8

110663-26 5,8_x86

112964-18 5.9 

114343-16  5.9_x86


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.