Richard Kettlewell <
r...@greenend.org.uk> wrote:
> root <
NoE...@home.org> writes:
>> J.O. Aho <
us...@example.net> wrote:
>>> On 21/05/13 16:24, root wrote:
>
>>>> I have tried nmap which seems only to scan the first 1024
>>>> ports. As I read man nmap I tried a number of things
>>>> like -PU or -PY with no success.
>>>
>>> you have to specify the range: -p1-65000
>>
>> That does the trick. So I ran an experiment to scan just 10 ports which
>> included the open port. It took 1.7 seconds. At that rate it would
>> take a little over 3 hours to scan all the ports.
>
> It?s not really safe to assume it scales like that. Scanning all 64k
> TCP ports over ethernet takes 2.6s for me. With a narrower connection
> to the attack the elapsed time would presumably be longer, but not
> necessarily by very much. Even with a 1Mbit/s connection I wouldn?t be
> surprised if it could take less than a minute.
>
>> I also limited the ssh login attempts to 3, then imposed a 1 minute
>> wait before additional logins could be tried. I think that defeats
>> any brute force break in.
>
> I would want to know how the limitation coped with concurrent login
> attempts before being too sure. IMHO a better approach is to make it a
> matter of computation rather than configuration, either by using a very
> expensive password hashing algorithm or by disabling password login
> altogether and using keys instead. (I use the latter approach for
> Internet-facing logins.)
>
I set up what I am sure are uncrackable passwords at each of the
remote sites. Within those networks I transferred ssh keys to
the target machine so that their access is not hampered. Likewise
I have transferred my public keys to the target machine.
I got my iptables implementation of the 1 minute rule from a
search of the net. It has a disadvantage, however. It limits
the time between scp file transfers. I changed the delay down
to 15 seconds.
As far as file transfers go, I learned about a remarkable
package sshfs.