Logging into linux server via SSH - allowed ip addresses
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I don't know whether the SSH server has the ability to filter incoming traffic by IP. You could, however, implement such filtering fairly easily with an iptables script to block specified IP traffic on port 22. Some might argue that in terms of security, this would be a better approach.
--- rod.
My particular problem is that I am unable to login to the server using PuTTY from my own ip address. I have previously asked the server management to allow my ip address access and they did so, but as my ip address changes, i do not want to bother them with it every time my ip changes, which seems to happen if I switch on/off my router.
Is there a way I can specify which ip addresses are allowed rather than disallowed?
I have also read regarding this, blocking traffic for a particular port in iptables is saffer than blocking through tcp_wrappers.
But how to justify this ? On what basis the above statement holds true ?
My logic on the matter would be that the earlier that traffic is blocked, the less opportunity there would be for undesirable behavior. As I understand it, the IP stack will not even see a packet that has been dropped by the netfilter/iptables layer.
--- rod.
My particular problem is that I am unable to login to the server using PuTTY from my own ip address. I have previously asked the server management to allow my ip address access and they did so, but as my ip address changes, i do not want to bother them with it every time my ip changes, which seems to happen if I switch on/off my router.
Is there a way I can specify which ip addresses are allowed rather than disallowed?
notify them you would like a static IP configuration rather than, what I will assume, is your current DHCP setup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.