MyITPS
  • 0 Shopping Cart
  •   Portal Home
  •   Store
    • Browse All
    • WordPress Hosting
    • Ads Management
    • VPS
    • Development & Design
    • Management & Updates
    • IT Services
    • Security Camera Installation
    • Backup
    • Generative AI Training
    • Cybersecurity & AI Safety Training
    • Web Services
    • Social Media Management
    • Register a New Domain
    • Transfer Domains to Us
  •   Announcements
  •   Knowledgebase
  •   Network Status
  •   Contact Us
  • More
  •   Account
    • Login
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. Linux SSH Commands
  4. How to limit SSH User Logins?

  Categories

8
cPanel
14
Databases
24
Domains
8
Email (Mail)
8
Introduction to Web Hosting
1
Accounting
4
Advanced
1
Apache
2
Backup
4
Billing
11
Client Area
2
Fantastico
5
Files
6
Joomla
14
Linux SSH Commands
22
phpMyAdmin
5
Pre-Sales
1
Reseller Hosting
1
Scripts
8
Security
4
Server Security
1
Software
2
SSL
5
Troubleshooting
4
WebSite Template
10
WHM
14
WordPress Help

  Categories

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

How to limit SSH User Logins? Print

  • 0

This will limit remote access to those users who really need it. 

  • Open the /etc/ssh/sshd_config file.
    • # vi /etc/ssh/sshd_config
  • Add an AllowUsers line at the bottom of the file with a space separated by list of usernames. For example, user tecmint and sheena both have access to remote ssh.
    • AllowUsers david mark
  • Now restart ssh service.

Was this answer helpful?

Related Articles

How to Create Full backup for an account visa SSH CPanel: Backup and Restore a Domain Account via SSHPlease Rate us Sometimes there is a need... How create a backup of a MySQL database using SSH Please Rate us  Log into your account on our server and issue the following command:... mysql user with the name already exists. how to delete Please Rate us Solving an issue of Extracting tarball................... DoneExtracting... Optimize and repair all mysql databases at once There is a really handy MySql utility called mysqlcheck that allows you to do a number of... How to disable SSH login for the root user? Please Rate us  To disable root login, open the main ssh configuration file...
« Back

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket
  • Contact Us
  • Terms of Service

Copyright © 2026 MyITPS. All Rights Reserved.


Loading...
Loading...

Generate Password

Please enter a number between 8 and 64 for the password length