Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible that we restrict User on a perticular IP Addess in FTP or another Server. Ex. FTP User A able to login on it’s allow IP A.A.A.A, And FTP User B able to login on it’s allow IP B.B.B.B. User A not able to login from User B allow IP B.B.B.B.
Is it possible that we restrict User on a perticular IP Addess in FTP or another Server. Ex. FTP User A able to login on it’s allow IP A.A.A.A, And FTP User B able to login on it’s allow IP B.B.B.B. User A not able to login from User B allow IP B.B.B.B.
Yes, it is, depending on which FTP server you're using. You don't tell us what version/distro of Linux or what FTP server you're talking about, but this is covered in both the ProFTP and VSFTP manuals.
It's fairly easy to restrict users to ip addresses, key or not.
In the sshd_config at the bottom you can write who is permitted to access from where.
If you want to define by user & restrict bob to 132.647.546.2 & alice to 435.765.245
Code:
AllowUsers bob@132.647.546.2 alice@435.765.245
Or if you have a group ftp connecting from anywhere in 345.643.3
Great...so did you check/read the documentation on vsftpd yet? Pay particular attention to the tcp_wrappers directive. Also, again, proftpd has such things built in as well. https://security.appspot.com/vsftpd/vsftpd_conf.html
Quote:
And I also AllowUsers username@IP in my sshd_conf file. But it's not helpful foe m.
Changing ANYTHING for your SSH configuration won't change anything for FTP...they're two different services. The AllowUsers directive for SSH is for SFTP.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.