<?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: Access control on sftp in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564889#M18157</link>
    <description>&lt;BR /&gt;so what i have told you holds true. use /etc/hosts.allow and /etc/hosts.deny for access restriction based on ip address. or you can use iptables to block the port&lt;BR /&gt;&lt;BR /&gt;and if you want to restrict users by login id, then you can do so by adding them in /etc/vsftpd/ftpusers  &lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
    <pubDate>Thu, 16 Jun 2005 01:45:17 GMT</pubDate>
    <dc:creator>Gopi Sekar</dc:creator>
    <dc:date>2005-06-16T01:45:17Z</dc:date>
    <item>
      <title>Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564882#M18150</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to put IP and user restriction for SFTP and FTP server. OS if Fedora core 2.</description>
      <pubDate>Wed, 15 Jun 2005 18:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564882#M18150</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2005-06-15T18:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564883#M18151</link>
      <description>For 'vsftpd', it's fairly easy to restrict which IP's can connect.&lt;BR /&gt;&lt;BR /&gt;You can either firewall port 21 out, or use the '/etc/hosts.allow' / '/etc/hosts.deny' tcp wrappers.&lt;BR /&gt;&lt;BR /&gt;'sftp' however is a different beast all together.  As it's basically just an FTP interface to 'ssh', restricting IP addresses would also restrict them in using 'ssh'.  If that's ok, then it's the same.  Firewall port 22 out, or add tcpwrapper entries.&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;/etc/hosts.deny:&lt;BR /&gt;&lt;BR /&gt;vsftpd: ALL&lt;BR /&gt;&lt;BR /&gt;/etc/hosts.allow:&lt;BR /&gt;&lt;BR /&gt;vsftpd: &lt;IP-ALLOWED&gt;,&lt;ANOTHER-IP&gt;&lt;BR /&gt;&lt;BR /&gt;see 'man hosts_access' for more details on how TCP wrappers work.&lt;/ANOTHER-IP&gt;&lt;/IP-ALLOWED&gt;</description>
      <pubDate>Wed, 15 Jun 2005 18:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564883#M18151</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-15T18:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564884#M18152</link>
      <description>You might be better off creating a menu system triggered by .bash_profile that keeps the users off the command prompt and connects them to various applications sftp/ftp in that manner.&lt;BR /&gt;&lt;BR /&gt;The problem there is even if you trap the ctrl-c or ctrl-break keystroke there may ways for your users to break out.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 15 Jun 2005 23:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564884#M18152</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-06-15T23:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564885#M18153</link>
      <description>Wow, we read that and got completely opposite meanings!&lt;BR /&gt;&lt;BR /&gt;So I guess clarification is in order.&lt;BR /&gt;&lt;BR /&gt;Do you want to put restrictions on your usings FTPing out of your server?&lt;BR /&gt;&lt;BR /&gt;or restrictions on users accessing your server?</description>
      <pubDate>Wed, 15 Jun 2005 23:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564885#M18153</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-15T23:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564886#M18154</link>
      <description>&lt;BR /&gt;can you please be more specific. as stuart mentioned it is not very clear about your objective.&lt;BR /&gt;&lt;BR /&gt;*if you want to block ip access to your ftp server then you can do so by hosts access list(/etc/hosts.allow and /etc/hosts.deny) or by using iptables firewall. You can do the same to deny sftp access.&lt;BR /&gt;&lt;BR /&gt;*if you want to deny access to particular user logins through ftp then you can do so by adding the login ids in /etc/vsftpd/ftpusers&lt;BR /&gt;&lt;BR /&gt;I am not sure of sftp though.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Thu, 16 Jun 2005 00:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564886#M18154</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-16T00:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564887#M18155</link>
      <description>I want to restrict users to access server. Not going out. Only incoming</description>
      <pubDate>Thu, 16 Jun 2005 01:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564887#M18155</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2005-06-16T01:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564888#M18156</link>
      <description>Then what i've told you already is most of what you need.&lt;BR /&gt;&lt;BR /&gt;As for restricting what users can FTP in, that's different.&lt;BR /&gt;&lt;BR /&gt;I don't believe 'sftp' (via ssh) can do such restrictions, but 'vsftpd' most certainly can in the '/etc/vsftpd/vsftpd.conf'.</description>
      <pubDate>Thu, 16 Jun 2005 01:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564888#M18156</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-16T01:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564889#M18157</link>
      <description>&lt;BR /&gt;so what i have told you holds true. use /etc/hosts.allow and /etc/hosts.deny for access restriction based on ip address. or you can use iptables to block the port&lt;BR /&gt;&lt;BR /&gt;and if you want to restrict users by login id, then you can do so by adding them in /etc/vsftpd/ftpusers  &lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Thu, 16 Jun 2005 01:45:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564889#M18157</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-16T01:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Access control on sftp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564890#M18158</link>
      <description>You can restrict the users conectig throug sftp using the AllowUsers AllowGroups options in sshd_config (i think), but this restrict also the use of ssh, scp, etc.&lt;BR /&gt;&lt;BR /&gt;Also, you can modify the /etc/pam.d/sshd pam file and stack pam_listfile.so&lt;BR /&gt;&lt;BR /&gt;auth     required       pam_listfile.so item=user sense=deny file=/etc/sftpusers&lt;BR /&gt;onerr=succeed&lt;BR /&gt;&lt;BR /&gt;This should do the job.</description>
      <pubDate>Tue, 21 Jun 2005 17:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/access-control-on-sftp/m-p/3564890#M18158</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-06-21T17:42:56Z</dc:date>
    </item>
  </channel>
</rss>

