PhotonVPS
  • 0 Shopping Cart
  • Home
  • Store
    • Browse All
    • Los Angeles Forex VPS Hosting
    • Ashburn Forex VPS Hosting
    • London Forex VPS Hosting
    • Licensing
    • Los Angeles Linux NVMe Cloud
    • Los Angeles Windows NVMe Cloud
    • Dallas Linux NVMe Cloud
    • Dallas Windows NVMe Cloud
    • Ashburn Linux NVMe Cloud
    • Ashburn Windows NVMe Cloud
    • Chicago Linux NVMe Cloud
    • Chicago Windows NVMe Cloud
    • Sao Paulo Linux NVMe Cloud
    • Sao Paulo Windows NVMe Cloud
    • London Linux NVMe Cloud
    • London Windows NVMe Cloud
    • Amsterdam Linux NVMe Cloud
    • Amsterdam Windows NVMe Cloud
    • Barcelona Linux NVMe Cloud
    • Barcelona Windows NVMe Cloud
    • Seoul Linux NVMe Cloud
    • Seoul Windows NVMe Cloud
    • Singapore Linux NVMe Cloud
    • Singapore Windows NVMe Cloud
    • Taiwan Linux NVMe Cloud
    • Taiwan Windows NVMe Cloud
    • Tokyo Linux NVMe Cloud
    • Tokyo Windows NVMe Cloud
    • Johannesburg Linux NVMe Cloud
    • Johannesburg Windows NVMe Cloud
    • Sydney Linux NVMe Cloud
    • Sydney Windows NVMe Cloud
    • Atlanta Linux NVMe Cloud
    • Atlanta Windows NVMe Cloud
    • Mumbai Linux NVMe Cloud
    • Mumbai Windows NVMe Cloud
  • Announcements
  • Knowledgebase
  • Network Status
  • Affiliates
  • Contact Us
  • More
  • Account
    • Login
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. Linux
  4. How to limit SSH User Logins?

  Categories

Apache
1
Billing
11
Client Area
4
Domains
4
Linux
26
Mac OS X
2
PhotonVPS Policies
4
Pre-Sales
28
Script Support
1
Support
9
Windows
20

  Categories

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket

How to limit SSH User Logins? Print

  • 8

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

Connecting to your Linux VPS Now you received your details you’ll connect to it via SSH if you have a Linux VPS: If your... SSH is not working? Please follow the steps below if SSH on your server is not working - Please make sure... How to setup VPN server (PPTP on CentOS, RedHat and Ubuntu)? This howto describes the steps in how to setup a PPTP VPN on Centos, Fedora, Debian, and Ubuntu... How to install OpenVPN on Linux? apt-get install openvpn openssl udev wget... How to change root password on Linux VPS? If you don't remember the password, please use the following steps for changing the root password...
« Back

  Support

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

Copyright © 2026 PhotonVPS. All Rights Reserved.


Loading...
Loading...
Choose language
العربية
Azerbaijani
Català
中文
Hrvatski
Čeština
Dansk
Nederlands
English
English
Estonian
Persian
Français
Deutsch
עברית
Magyar
Italiano
Macedonian
Norwegian
Português
Português
Română
Русский
Español
Svenska
Türkçe
Українська

Generate Password

Enter a number between 12 and 64 for the password length.