Sziasztok!
Ubuntu server 12 LTS-en tapasztalom a következőt.
Sima USER-ként SSH-n belépek, minden OK.
Kilépek, majd rögtön próbálok újra csatlakozni, és nem sikerül. (1-2 perc elteltével megint tudok)
(Nem a fail2ban okozza, mert lelőttem)
Mint-ha nem tudnék több szálon becsatlakozni párhuzamosan.
Ez azért nem jó, mert ugye SFTP-vel szeretnék feltöltögetni, ami emiatt néha elakad.
Hogyan tudok adni ilyen jogot ?
Vagy hogyan tudom engedni az sshd-nek hogy fogadjon 10 egyidejű csatlakozást is tőlem.
Köszi.
- 3515 megtekintés
Hozzászólások
Valahol az a gyanum, hogy itt lesz a megoldás:
MAN:
...
MaxSessions
Specifies the maximum number of open sessions permitted per net-
work connection. The default is 10.
MaxStartups
Specifies the maximum number of concurrent unauthenticated con-
nections to the SSH daemon. Additional connections will be
dropped until authentication succeeds or the LoginGraceTime
expires for a connection. The default is 10.
Alternatively, random early drop can be enabled by specifying the
three colon separated values ``start:rate:full'' (e.g.
"10:30:60"). sshd(8) will refuse connection attempts with a
probability of ``rate/100'' (30%) if there are currently
``start'' (10) unauthenticated connections. The probability
increases linearly and all connection attempts are refused if the
number of unauthenticated connections reaches ``full'' (60).
...
- A hozzászóláshoz be kell jelentkezni
Igen, ez volt a probléma.
MaxSessions, és MaxStartups-t rendesen beállítva tökéletesen megy.
- A hozzászóláshoz be kell jelentkezni