<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: rssh - Connection closed in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/rssh-connection-closed/m-p/5219073#M51616</link>
    <description>&amp;gt;&amp;gt;&amp;gt; couldn't find /t3public/public_ftp in chroot jail&lt;BR /&gt;&lt;BR /&gt;This indicates that the directory was not found as subdirectories of the chroot path. Probably the sftpduka user has /t3public/public_ftp as home directory.&lt;BR /&gt;&lt;BR /&gt;Maybe the problem is that as you have:&lt;BR /&gt;&lt;BR /&gt;chrootpath = "/t3public/public_ftp"&lt;BR /&gt;&lt;BR /&gt;The system is trying to find:&lt;BR /&gt;&lt;BR /&gt;"/t3public/public_ftp/t3public/public_ftp"&lt;BR /&gt;&lt;BR /&gt;So, try one of these things:&lt;BR /&gt;&lt;BR /&gt;Set the home dir for the user as / or&lt;BR /&gt;Change the chrootpath to another directory, and create subdirectories there, for example:&lt;BR /&gt;&lt;BR /&gt;chrootpath = /usr/local/chroot&lt;BR /&gt;mkdir -p /usr/local/chroot/t3public/public_ftp&lt;BR /&gt;&lt;BR /&gt;Or comment out the user=sftpduka directives.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Jan 2010 18:22:11 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2010-01-13T18:22:11Z</dc:date>
    <item>
      <title>rssh - Connection closed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rssh-connection-closed/m-p/5219072#M51615</link>
      <description>I have installed rssh on one of our Red Hat 5.3 servers, and set it up for sftp only, and chroot... &lt;BR /&gt;&lt;BR /&gt;When I try to do an sftp from another server, it asked for the user id's password, and then immediately gives me the messahe: Connection closed...&lt;BR /&gt;&lt;BR /&gt;=&amp;gt;sftp sftpduka@sftpserver&lt;BR /&gt;Connecting to sftpserver...&lt;BR /&gt;sftpduka@sftpserver's password:&lt;BR /&gt;Connection closed&lt;BR /&gt;:=&amp;gt;&lt;BR /&gt;&lt;BR /&gt;The following is put into the /var/log/messages on the sftpserver:&lt;BR /&gt;Jan 13 17:33:58 sftpserver rssh_chroot_helper[16099]: new session for sftpduka, UID=609&lt;BR /&gt;Jan 13 12:33:58 sftpserver rssh[16099]: chrooting all users to /t3public/public_ftp&lt;BR /&gt;Jan 13 17:33:58 sftpserver rssh_chroot_helper[16099]: user's home dir is /t3public/public_ftp&lt;BR /&gt;Jan 13 12:33:58 sftpserver rssh[16099]: chroot cmd line: /usr/libexec/rssh_chroot_helper 2 "/usr/libexec/openssh/sftp-server"&lt;BR /&gt;Jan 13 17:33:58 sftpserver rssh_chroot_helper[16099]: couldn't find /t3public/public_ftp in chroot jail&lt;BR /&gt;Jan 13 17:33:58 sftpserver rssh_chroot_helper[16099]: chrooted to /t3public/public_ftp&lt;BR /&gt;Jan 13 17:33:58 sftpserver rssh_chroot_helper[16099]: changing working directory to / (inside jail)&lt;BR /&gt;&lt;BR /&gt;Is anyone familiar with rssh that may be able to help ??&lt;BR /&gt;&lt;BR /&gt;[root@duounfs01 t3public]# ls -al /t3public&lt;BR /&gt;total 44&lt;BR /&gt;drwxrwxr-x  7 root    infinys  4096 Jan 13 10:06 .&lt;BR /&gt;drwxr-xr-x 50 root    root     4096 Jan  5 21:25 ..&lt;BR /&gt;drwxrwxr-x  2 infduka infinys  4096 Jan 13 10:06 infduka&lt;BR /&gt;drwxrwxr-x  3 infduki infinys  4096 Jan 13 09:14 infduki&lt;BR /&gt;drwx------  2 root    root    16384 Nov 20 10:13 lost+found&lt;BR /&gt;drwxr-xr-x 10 root    root     4096 Jan 13 10:24 public_ftp&lt;BR /&gt;drwxr-xr-x  2 root    root     4096 Nov 20 15:14 UAT_FTP&lt;BR /&gt;[root@duounfs01 t3public]# ls -al /t3public/public_ftp&lt;BR /&gt;total 44&lt;BR /&gt;drwxr-xr-x 10 root     root     4096 Jan 13 10:24 .&lt;BR /&gt;drwxrwxr-x  7 root     infinys  4096 Jan 13 10:06 ..&lt;BR /&gt;drwxr-xr-x  2 root     root     4096 Jan 13 10:19 bin&lt;BR /&gt;drwxr-xr-x  2 root     root     4096 Jan 13 10:37 dev&lt;BR /&gt;drwxr-xr-x  3 root     root     4096 Jan 13 10:08 etc&lt;BR /&gt;drwxr-xr-x  2 sftpduka sftponly 4096 Jan 13 10:06 infduka&lt;BR /&gt;drwxr-xr-x  2 sftpduki sftponly 4096 Jan 13 10:06 infduki&lt;BR /&gt;-rwx------  1 root     root     1387 Jan 13 10:06 l2chroot&lt;BR /&gt;drwxr-xr-x  2 root     root     4096 Jan 13 09:41 lib&lt;BR /&gt;drwxr-xr-x  2 root     root     4096 Jan 13 10:24 lib64&lt;BR /&gt;drwxr-xr-x  5 root     root     4096 Jan 13 09:59 usr&lt;BR /&gt;[root@duounfs01 t3public]#&lt;BR /&gt;&lt;BR /&gt;My rssh.conf file contains:&lt;BR /&gt;[root@sftpserver t3public]# cat /etc/rssh.conf&lt;BR /&gt;# This is the default rssh config file&lt;BR /&gt;&lt;BR /&gt;# set the log facility.  "LOG_USER" and "user" are equivalent.&lt;BR /&gt;logfacility = LOG_USER&lt;BR /&gt;&lt;BR /&gt;# Leave these all commented out to make the default action for rssh to lock&lt;BR /&gt;# users out completely...&lt;BR /&gt;&lt;BR /&gt;#allowscp&lt;BR /&gt;allowsftp&lt;BR /&gt;#allowcvs&lt;BR /&gt;#allowrdist&lt;BR /&gt;#allowrsync&lt;BR /&gt;&lt;BR /&gt;# set the default umask&lt;BR /&gt;umask = 022&lt;BR /&gt;&lt;BR /&gt;# If you want to chroot users, use this to set the directory where the root of&lt;BR /&gt;# the chroot jail will be located.&lt;BR /&gt;#&lt;BR /&gt;# if you DO NOT want to chroot users, LEAVE THIS COMMENTED OUT.&lt;BR /&gt;# chrootpath = /usr/local/chroot&lt;BR /&gt;&lt;BR /&gt;# You can quote anywhere, but quotes not required unless the path contains a&lt;BR /&gt;# space...&lt;BR /&gt;chrootpath = "/t3public/public_ftp"&lt;BR /&gt;&lt;BR /&gt;##########################################&lt;BR /&gt;# EXAMPLES of configuring per-user options&lt;BR /&gt;&lt;BR /&gt;#user=rudy:077:00010:  # the path can simply be left out to not chroot&lt;BR /&gt;#user=rudy:077:00010   # the ending colon is optional&lt;BR /&gt;&lt;BR /&gt;#user=rudy:011:00100:  # cvs, with no chroot&lt;BR /&gt;#user=rudy:011:01000:  # rdist, with no chroot&lt;BR /&gt;#user=rudy:011:10000:  # rsync, with no chroot&lt;BR /&gt;#user="rudy:011:00001:/usr/local/chroot"  # whole user string can be quoted&lt;BR /&gt;#user=rudy:01"1:00001:/usr/local/chroot"  # or somewhere in the middle, freak!&lt;BR /&gt;#user=rudy:'011:00001:/usr/local/chroot'  # single quotes too&lt;BR /&gt;&lt;BR /&gt;# if your chroot_path contains spaces, it must be quoted...&lt;BR /&gt;# In the following examples, the chroot_path is "/usr/local/my chroot"&lt;BR /&gt;#user=rudy:011:00001:"/usr/local/my chroot"  # scp with chroot&lt;BR /&gt;#user=rudy:011:00010:"/usr/local/my chroot"  # sftp with chroot&lt;BR /&gt;#user=rudy:011:00011:"/usr/local/my chroot"  # both with chroot&lt;BR /&gt;&lt;BR /&gt;# Spaces before or after the '=' are fine, but spaces in chrootpath need&lt;BR /&gt;# quotes.&lt;BR /&gt;#user = "rudy:011:00001:/usr/local/my chroot"&lt;BR /&gt;#user = "rudy:011:00001:/usr/local/my chroot"  # neither do comments at line end&lt;BR /&gt;&lt;BR /&gt;#user=sftpduka:011:00010:"/t3public/public_ftp"  # sftp with chroot&lt;BR /&gt;#user=sftpduki:011:00010:"/t3public/public_ftp"  # sftp with chroot&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;[root@sftpserver t3public]#&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2010 17:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rssh-connection-closed/m-p/5219072#M51615</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2010-01-13T17:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: rssh - Connection closed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rssh-connection-closed/m-p/5219073#M51616</link>
      <description>&amp;gt;&amp;gt;&amp;gt; couldn't find /t3public/public_ftp in chroot jail&lt;BR /&gt;&lt;BR /&gt;This indicates that the directory was not found as subdirectories of the chroot path. Probably the sftpduka user has /t3public/public_ftp as home directory.&lt;BR /&gt;&lt;BR /&gt;Maybe the problem is that as you have:&lt;BR /&gt;&lt;BR /&gt;chrootpath = "/t3public/public_ftp"&lt;BR /&gt;&lt;BR /&gt;The system is trying to find:&lt;BR /&gt;&lt;BR /&gt;"/t3public/public_ftp/t3public/public_ftp"&lt;BR /&gt;&lt;BR /&gt;So, try one of these things:&lt;BR /&gt;&lt;BR /&gt;Set the home dir for the user as / or&lt;BR /&gt;Change the chrootpath to another directory, and create subdirectories there, for example:&lt;BR /&gt;&lt;BR /&gt;chrootpath = /usr/local/chroot&lt;BR /&gt;mkdir -p /usr/local/chroot/t3public/public_ftp&lt;BR /&gt;&lt;BR /&gt;Or comment out the user=sftpduka directives.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2010 18:22:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rssh-connection-closed/m-p/5219073#M51616</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2010-01-13T18:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: rssh - Connection closed</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rssh-connection-closed/m-p/5219074#M51617</link>
      <description>Thanks, re-checked your suggestions and everything was setup correctly... &lt;BR /&gt;&lt;BR /&gt;I then found a message from google that suggested that as a last resolrt to just copy /lib/* to /chrootdir/lib &lt;BR /&gt;&lt;BR /&gt;Did this and /lib64/* to /chrootdir/lib64 and everything started working correctly...&lt;BR /&gt;&lt;BR /&gt;Must of been something that was missing from what I was instructed to copy from rssh documentation...&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2010 19:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rssh-connection-closed/m-p/5219074#M51617</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2010-01-13T19:48:50Z</dc:date>
    </item>
  </channel>
</rss>

