<?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: restricted secure ftp (sftp) ! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548380#M808443</link>
    <description>I got the same problem as you Ivan.  I tried to use the following as the shell and it works !  Meaning I can sftp but user won't be able to login.   However, the problem is,  when sftp connection started, the user is able to 'cd' anywhere.  Does anyone has a clue ?  Thank you.&lt;BR /&gt;&lt;BR /&gt;Login name: suser1         (messages off)&lt;BR /&gt;Directory: /home/suser1                    Shell: /opt/ssh/libexec/sftp-server&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 27 Jun 2005 03:28:22 GMT</pubDate>
    <dc:creator>ITSD-ACCS</dc:creator>
    <dc:date>2005-06-27T03:28:22Z</dc:date>
    <item>
      <title>restricted secure ftp (sftp) !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548374#M808437</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;I have a lot of ftp users configured with restricted ftp rules using the ftpaccess file , etc. But now I want to configure some ftp accounts using sftp with the same characteristics.&lt;BR /&gt;&lt;BR /&gt;But when i use de sftp service i receive a close connection message. &lt;BR /&gt;&lt;BR /&gt;In resume i need to define the same funcionallity in ftp restricted over sftp restricted, or the posibility to establish a ftp connection specifying the username in the same command line like in sftp, ej.&lt;BR /&gt;&lt;BR /&gt;# sftp ftpusr1@146.219.220.6 &lt;BR /&gt;&lt;BR /&gt;Obviusly i can use de open command with the ftp command but i need that the ftp session remain active in order to interact with some ftp commands like in a normal ftp session.&lt;BR /&gt;&lt;BR /&gt;Somebody have an idea ?&lt;BR /&gt;&lt;BR /&gt;Thank's in advance !</description>
      <pubDate>Thu, 19 May 2005 19:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548374#M808437</guid>
      <dc:creator>Ivan Azuara</dc:creator>
      <dc:date>2005-05-19T19:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: restricted secure ftp (sftp) !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548375#M808438</link>
      <description>Checklist:&lt;BR /&gt;&lt;BR /&gt;1)Make sure a firewall is not blocking port 22.&lt;BR /&gt;2)ps -ef | grep sshd&lt;BR /&gt;If there are no processes running sshd then secure shell/openssh, which is a sftp server is not running.&lt;BR /&gt;/sbin/init.d/secsh start&lt;BR /&gt;&lt;BR /&gt;If you can't find it, install secure shell from &lt;A href="http://software.hp.com" target="_blank"&gt;http://software.hp.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 19 May 2005 23:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548375#M808438</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-19T23:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: restricted secure ftp (sftp) !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548376#M808439</link>
      <description>The firewall isn't closing the port 22, in fact i can establish a good connections trought sftp with other users (check E1). But when i used one of them ftpusers with "Access restrictions" rules applied, using sftp then i have problems (check E2)&lt;BR /&gt;&lt;BR /&gt;E1) Succesfully connection.&lt;BR /&gt;&lt;BR /&gt;# sftp ftppdes1@146.219.220.6&lt;BR /&gt;Connecting to 146.219.220.6...&lt;BR /&gt;Password: &lt;BR /&gt;sftp&amp;gt; &lt;BR /&gt;&lt;BR /&gt;E2) Unsuccesfully connection.&lt;BR /&gt;&lt;BR /&gt;# sftp ftppusr1@146.219.220.6&lt;BR /&gt;Connecting to 146.219.220.6...&lt;BR /&gt;Password: &lt;BR /&gt;Connection to 146.219.220.6 closed by remote host.&lt;BR /&gt;Connection closed&lt;BR /&gt;&lt;BR /&gt;Obviously when i use a normal ftp connection, i donÂ´t have any problem, look it (E3):&lt;BR /&gt;&lt;BR /&gt;E3)&lt;BR /&gt;&lt;BR /&gt;# ftp 146.219.220.6&lt;BR /&gt;Connected to 146.219.220.6.&lt;BR /&gt;220 FTP server ready.&lt;BR /&gt;Name (146.219.220.6:root): ftppusr1&lt;BR /&gt;331 Password required for ftppusr1.&lt;BR /&gt;Password:&lt;BR /&gt;230 User ftppusr1 logged in.  Access restrictions apply.&lt;BR /&gt;Remote system type is UNIX.&lt;BR /&gt;Using binary mode to transfer files.&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;&lt;BR /&gt;My definition of this user in the passwd file is the next:&lt;BR /&gt;&lt;BR /&gt;ftppusr1:*:116:20:ftp user 1,technical support,0567,:/sii_bussiness/bea/user_projects/domains/SII_DOMAIN/logs/./:/usr/bin/ftpshell&lt;BR /&gt;&lt;BR /&gt;My priority is use the ftp user restriction rules with sftp or use ftp user restriction rules specifying the username in the same command line like in sftp.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Ivan</description>
      <pubDate>Fri, 20 May 2005 11:25:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548376#M808439</guid>
      <dc:creator>Ivan Azuara</dc:creator>
      <dc:date>2005-05-20T11:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: restricted secure ftp (sftp) !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548377#M808440</link>
      <description>Hi Ivan&lt;BR /&gt;&lt;BR /&gt;You are probably running into issues because of the chrooted env for the user "ftpusr1"&lt;BR /&gt;&lt;BR /&gt;Try this link on how to configure sftp to use the chrooted env for the user.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/T1471-90014/ch01s13.html" target="_blank"&gt;http://docs.hp.com/en/T1471-90014/ch01s13.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;for sftp / chroot, try this.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/T1471-90014/ch01s13.html#babibgef" target="_blank"&gt;http://docs.hp.com/en/T1471-90014/ch01s13.html#babibgef&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Fri, 20 May 2005 15:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548377#M808440</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-05-20T15:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: restricted secure ftp (sftp) !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548378#M808441</link>
      <description>If you are using HP's ssh you can make the use of /opt/ssh/ssh_chroot_setup.sh script to help you setup chroot environment.</description>
      <pubDate>Fri, 20 May 2005 20:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548378#M808441</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-20T20:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: restricted secure ftp (sftp) !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548379#M808442</link>
      <description>Looks like it could be the user's shell that's preventing the sftp connection for ftpusr1. If you want to make this user an sftp only user, I suppose you could set their shell to&lt;BR /&gt;&lt;BR /&gt;/opt/ssh/libexec/sftp-server&lt;BR /&gt;&lt;BR /&gt;This would allowd them to sftp into the box, and ssh'ing in for shell access wouldn't really get them anywhere...&lt;BR /&gt;&lt;BR /&gt;If you still need help, post the output of&lt;BR /&gt;&lt;BR /&gt;sftp -vvv ftpusr1@146.219.220.6&lt;BR /&gt;&lt;BR /&gt;on the failed session.&lt;BR /&gt;&lt;BR /&gt;hope this helps,&lt;BR /&gt;-denver</description>
      <pubDate>Fri, 20 May 2005 22:21:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548379#M808442</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2005-05-20T22:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: restricted secure ftp (sftp) !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548380#M808443</link>
      <description>I got the same problem as you Ivan.  I tried to use the following as the shell and it works !  Meaning I can sftp but user won't be able to login.   However, the problem is,  when sftp connection started, the user is able to 'cd' anywhere.  Does anyone has a clue ?  Thank you.&lt;BR /&gt;&lt;BR /&gt;Login name: suser1         (messages off)&lt;BR /&gt;Directory: /home/suser1                    Shell: /opt/ssh/libexec/sftp-server&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jun 2005 03:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548380#M808443</guid>
      <dc:creator>ITSD-ACCS</dc:creator>
      <dc:date>2005-06-27T03:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: restricted secure ftp (sftp) !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548381#M808444</link>
      <description>Found this thread while trying to find out why "sftp only" in the script doesn't actually restrict it to sftp (allows ssh and scp).  The fix of changing shell to sftp-server worked for me.&lt;BR /&gt;&lt;BR /&gt;Wanted to note another oddity.  Initially I thought I had the issue noted originally that user could cd anywhere.  On testing though I found that is only true if I su to the user from root on the server.  Doing sftp login to the server from somewhere else DOES restrict it to the chroot.  &lt;BR /&gt;&lt;BR /&gt;That means this would only be an issue if the person you give sftp chroot jail access to also has another non-restricted account on the server and does an su from that one to the restricted one.  (In fact I didn't test that - only from root - it may only be a problem from the root user.)  &lt;BR /&gt;&lt;BR /&gt;However once you set the shell to sftp-user then su is no longer an issue anyway because they don't get a command line shell anyway.</description>
      <pubDate>Wed, 28 Sep 2005 12:31:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-secure-ftp-sftp/m-p/3548381#M808444</guid>
      <dc:creator>Jeff Lightner_1</dc:creator>
      <dc:date>2005-09-28T12:31:15Z</dc:date>
    </item>
  </channel>
</rss>

