<?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: Disable ssh but enable sftp for certain users? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972950#M741063</link>
    <description>Geoff -&lt;BR /&gt;&lt;BR /&gt;You might take a look at scponly.  It secures transfers to a chrooted jail without having to give a full-blown SSH login.  We've been using it for a few years now.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sublimation.org/scponly/" target="_blank"&gt;http://www.sublimation.org/scponly/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;8-)&lt;BR /&gt;&lt;BR /&gt;- Patrick&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 06 Jun 2006 11:14:20 GMT</pubDate>
    <dc:creator>Patrick Sweeney (PAC)</dc:creator>
    <dc:date>2006-06-06T11:14:20Z</dc:date>
    <item>
      <title>Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972941#M741054</link>
      <description>Is there a way to configure ssh so that certain users have sftp only?&lt;BR /&gt;&lt;BR /&gt;I know with the security product I'm using allows that granularity - but what about vanilla openssh and/or HP Secure Shell?&lt;BR /&gt;&lt;BR /&gt;The only option I see is to chroot the users...which isn't a bad idea at all...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.brandonhutchinson.com/chroot_ssh.html" target="_blank"&gt;http://www.brandonhutchinson.com/chroot_ssh.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 10 Apr 2006 15:12:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972941#M741054</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-04-10T15:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972942#M741055</link>
      <description>Shalom Geoff,&lt;BR /&gt;&lt;BR /&gt;Let me propose a very simple way.&lt;BR /&gt;&lt;BR /&gt;user and group permissions.&lt;BR /&gt;&lt;BR /&gt;Create a group called sftpusers&lt;BR /&gt;&lt;BR /&gt;Add the chosen users to the group who will be permitted sftp&lt;BR /&gt;&lt;BR /&gt;Change ownership of sftp to the group, or make only sftpusers and root capable of executing the file.&lt;BR /&gt;&lt;BR /&gt;Sounds to me like chroot is more fun, but group permissions would also work if chroot is not an option.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 10 Apr 2006 15:30:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972942#M741055</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-04-10T15:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972943#M741056</link>
      <description>Hey Geoff&lt;BR /&gt;&lt;BR /&gt;I don't know if this is what you are looking for, but U can add restrictions to the authorized_keys file.&lt;BR /&gt;from="server.domain.id",no-pty,command="scp -f /home/cfg2html/*cfg.html" ssh-dss AAAAB3Nz...user@server&lt;BR /&gt;&lt;BR /&gt;This would not allow other things than to cofy one specific file to a specific server. Even if you try something else it will rewrite the command and only copy that file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jannik&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Apr 2006 15:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972943#M741056</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2006-04-10T15:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972944#M741057</link>
      <description>I did this once, but I don't remember exactly, I think that is like this:&lt;BR /&gt;&lt;BR /&gt;Create a script called /usr/local/sbin/ssh-dummy-shell, it should look like this:&lt;BR /&gt;&lt;BR /&gt;if [ "$SSH_ORIGINAL_COMMAND" = "/usr/libexec/openssh/sftp-server" ]  &lt;BR /&gt;  then                                                               &lt;BR /&gt;    /usr/libexec/openssh/sftp-server                                 &lt;BR /&gt;  else                                                               &lt;BR /&gt;    echo "Restricted"                                                &lt;BR /&gt;fi                                                                   &lt;BR /&gt;&lt;BR /&gt;Edit the user's authorized_keys file and add the following before the key:&lt;BR /&gt;&lt;BR /&gt;command="/usr/local/sbin/ssh-dummy-shell"</description>
      <pubDate>Mon, 10 Apr 2006 16:43:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972944#M741057</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-04-10T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972945#M741058</link>
      <description>Chroot, and then copy that binary in user path which you want them to execute. .&lt;BR /&gt;&lt;BR /&gt;chroot is ssh-dummy-shell as user's shell.. &lt;BR /&gt;&lt;BR /&gt;and configure &lt;BR /&gt;&lt;BR /&gt;ChRootUsers      fgmacuwc,fgmacr3,fgmacre&lt;BR /&gt;&lt;BR /&gt;Line in sshd2_config in /etc/ssh2.. &lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Tx&lt;BR /&gt;Prashant&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Apr 2006 17:00:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972945#M741058</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2006-04-10T17:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972946#M741059</link>
      <description>Chroot, and then copy that binary in user path which you want them to execute. .&lt;BR /&gt;&lt;BR /&gt;chroot is ssh-dummy-shell as user's shell.. &lt;BR /&gt;&lt;BR /&gt;and configure &lt;BR /&gt;&lt;BR /&gt;ChRootUsers      fgmacuwc,fgmacr3,fgmacre&lt;BR /&gt;&lt;BR /&gt;Line in sshd2_config in /etc/ssh2.. &lt;BR /&gt;&lt;BR /&gt;But again user will be able to put any file under his home.. :-) &lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Tx&lt;BR /&gt;Prashant&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Apr 2006 17:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972946#M741059</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2006-04-10T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972947#M741060</link>
      <description>ChRootUsers will continue with your user names instead.. and sshd you have to restart once or a HUP is enough&lt;BR /&gt;Tx&lt;BR /&gt;Prashant</description>
      <pubDate>Mon, 10 Apr 2006 17:04:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972947#M741060</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2006-04-10T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972948#M741061</link>
      <description>Have you considered changing the users shell to /opt/ssh/libexec/sftp-server &lt;BR /&gt;&lt;BR /&gt;-denver&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Apr 2006 17:36:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972948#M741061</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2006-04-10T17:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972949#M741062</link>
      <description>Looks like chroot is the most secure way to go.&lt;BR /&gt;&lt;BR /&gt;Even with changing a user's default shell to sftp - they can still navigate anywhere on the server...&lt;BR /&gt;&lt;BR /&gt;Thanks for all the answers...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 11 Apr 2006 12:56:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972949#M741062</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-04-11T12:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Disable ssh but enable sftp for certain users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972950#M741063</link>
      <description>Geoff -&lt;BR /&gt;&lt;BR /&gt;You might take a look at scponly.  It secures transfers to a chrooted jail without having to give a full-blown SSH login.  We've been using it for a few years now.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sublimation.org/scponly/" target="_blank"&gt;http://www.sublimation.org/scponly/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;8-)&lt;BR /&gt;&lt;BR /&gt;- Patrick&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2006 11:14:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-ssh-but-enable-sftp-for-certain-users/m-p/4972950#M741063</guid>
      <dc:creator>Patrick Sweeney (PAC)</dc:creator>
      <dc:date>2006-06-06T11:14:20Z</dc:date>
    </item>
  </channel>
</rss>

