In comp.os.linux.networking Adrian Casey <(E-Mail Removed)>:
> Michael Heiming wrote:
>> In comp.os.linux.networking Adrian Casey <(E-Mail Removed)>:
>>> I'd like to be able to detect and prevent double hopping.
>>
>>> For example, a user is logged into host-A. From host-A they log into
>>> host-B. From host-B, they log into host-C. How do I detect this double
>>> hopping and how can I prevent it?
>>
>> Why would you want this? What's the problem with doing so?
> Let's say I run a small network of machines and I'm having trouble with
[..]
> Good suggestion. However, my network is quite large and I would rather not
> have to edit the sshd_config file for every remote access request on any
> given node. Although this could be automated I suppose.
[..]
First your network is small, a few lines below it's rather large?
Say it's the story with the consultant, simply disable his login
on host B, until you want him to login in there. But then, we
don't know.
>> Use ssh only, telnet is insecure and depreciated.
> Unfortunately, some of my systems are old clunky boxes which don't support
> ssh :-(
openssh compiles on almost anything you happen to have a C
compiler.
>>> gather as many details as possible when the situation occurs - eg
>>> hostname, username, source and destination hostnames.
>>
>> Enhance sshd login until it meets your needs.
Ops, logging of course, should be in the fine manual 'man
sshd_config' how to go about it.
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo
(E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 175: OS swapped to disk