LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-09-2005, 01:54 PM   #1
lumbrjackedpcj
Member
 
Registered: May 2004
Posts: 45

Rep: Reputation: 15
allow access to ssh with dynamic ip


i have a dynamic ip and it changes often depending on where im located on campus or in the city where i live. is it possible to setup the hosts.allow file so that i can ssh into my lab machine which has a static ip just my putting a partial hostname in it.

I gave my laptop a hostname "titus" in system-config-network. and put:
sshd: titus.*: ALLOW

When i try to ssh into my lab machine it gives me this:
ssh_exchange_identification: Connection closed by remote host

any help would be greatly appreciated.

Thanks
Paul
 
Old 01-09-2005, 02:08 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
OK, I understand why you are filtering using hosts.allow, but as long as you keep sshd up to date with security patches, you probably don't need to do this. If you really want to limit ssh access, it would probably be a better idea to move to key-based authorization rather than limiting IP addresses via hosts.allow. At very least it would be less annoying. If I understand hosts.allow correctly, at some point the name would have to be translated to an IP address via a DNS, and if your dynamic IP is changing frequently it is going to be tough to keep an updated DNS entry anywhere. I suppose you could use a service like no-ip.com and update that every time you get a new IP, but even that is going to take a while to filter through the system so your server could get the proper IP address.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH dynamic port forwarding -- Firefox does not see such a PROXY geokat Linux - Networking 0 05-01-2005 07:03 AM
Dynamic DNS for remote telnet ssh logins? nadsab Linux - Networking 10 03-27-2004 11:53 AM
Samba, ssh, port forwarding, and dynamic IP mdkelly069 Linux - Networking 0 03-19-2004 10:47 AM
Denying access to SSH but allow access to FTP nemesisza Linux - Security 5 03-14-2004 10:25 PM
MySQL remote access from Dynamic IP Address via phpMyAdmin Swene Linux - Networking 1 05-21-2002 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration