Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Technical Documentation
 
CLI Explorer New
 
Content Explorer New
 
Documentation Help New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
Glossary
 
Portable Libraries
 
Home > Support > Technical Documentation > Limiting the Number of User Login Attempts for SSH and Telnet Sessions
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...

Supported Platforms Search

Advanced Search |  Search Tips
 

Supported Platforms

  • M Series
  • MX Series
  • T Series
 
 

Related Documentation

  • M Series
  • Example: Limiting the Number of Login Attempts for SSH and Telnet Sessions
  • Configuring Junos OS User Accounts
  • MX Series
  • Example: Limiting the Number of Login Attempts for SSH and Telnet Sessions
  • Configuring Junos OS User Accounts
  • T Series
  • Example: Limiting the Number of Login Attempts for SSH and Telnet Sessions
  • Configuring Junos OS User Accounts
 
Recent Community Posts
Show All Show Fewer 
 
 
Related Links
M Series Product Literature
  • Junos Central
  • Junos Technotes
  • Junos Day One Books
M Series Certification
  • Fast Track Certification Program
  • Certification Study Guides
Junos Technical Education Courses (Free)
  • Networking Fundamentals
  • Junos As A Second Language
  • Junos As A Scripting Language
  • Junos As A Security Language
  • Juniper Networks Books
Support
  • Junos Software (Canada & US)  Login required
  • Junos Software (Worldwide) Login required
  • Knowledge Base - Browse M Series Articles  Login required
  • Technical Bulletins for M Series Login required
  • IOS to Junos Migration Tool Login required
  • ScreenOS to Junos software with enhanced services Migration Tool Login required
Show All Show Fewer 
 
 

Limiting the Number of User Login Attempts for SSH and Telnet Sessions

You can limit the number of times a user can attempt to enter a password while logging in through SSH or Telnet. The connection is terminated if a user fails to log in after the number of attempts specified. You can also specify a delay, in seconds, before a user can try to enter a password after a failed attempt. In addition, you can specify the threshold for the number of failed attempts before the user experiences a delay in being able to enter a password again.

To specify the number of times a user can attempt to enter a password while logging in, include the retry-options statement at the [edit system login] hierarchy level:

[edit system login]retry-options {tries-before-disconnect number;backoff-threshold number;backoff-factor seconds;maximum-time secondsminimum-time seconds;}

You can configure the following options:

  • tries-before-disconnect—Number of times a user can attempt to enter a password when logging in. The connection closes if a user fails to log in after the number specified. The range is from 1 through 10, and the default is 10.
  • backoff-threshold—Threshold for the number of failed login attempts before the user experiences a delay in being able to enter a password again. Use the backoff-factor option to specify the length of the delay in seconds. The range is from 1 through 3, and the default is 2.
  • backoff-factor—Length of time, in seconds, before a user can attempt to log in after a failed attempt. The delay increases by the value specified for each subsequent attempt after the threshold. The range is from 5 through 10, and the default is 5 seconds.
  • maximum-time seconds—Maximum length of time, in seconds, that the connection remains open for the user to enter a username and password to log in. If the user remains idle and does not enter a username and password within the configured maximum-time, the connection is closed. The range is from 20 through 300 seconds, and the default is 120 seconds.
  • minimum-time—Minimum length of time, in seconds, that a connection remains open while a user is attempting to enter a correct password. The range is from 20 through 60, and the default is 40.
 

Related Documentation

  • M Series
  • Example: Limiting the Number of Login Attempts for SSH and Telnet Sessions
  • Configuring Junos OS User Accounts
  • MX Series
  • Example: Limiting the Number of Login Attempts for SSH and Telnet Sessions
  • Configuring Junos OS User Accounts
  • T Series
  • Example: Limiting the Number of Login Attempts for SSH and Telnet Sessions
  • Configuring Junos OS User Accounts
 

Published: 2010-10-08

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out