Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux Change ssh port and disable remote root login at     - N1QL bring SQL-like query NoSQL database experience (Database)

- CentOS 6.5 installation Python3.0 (Linux)

- C ++ Supplements - Virtual Function Principle (Programming)

- Present Situation and Development Trend of firewall products (Linux)

- Linux Getting Started tutorial: hard disk partition and to deal with traps (Linux)

- Use pg_basebackup build PostgreSQL streaming replication environment (Database)

- Character Encoding notes: ASCII, Unicode and UTF-8 (Linux)

- Hibernate Performance Optimization of reusing SessionFactory (Programming)

- Single-node Hadoop installation notes distributed pseudo & (Server)

- installation process of Matlab 2012a under Ubuntu 14.04 (Linux)

- Linux platform to prevent hackers to share practical skills (Linux)

- Let Markdown code syntax highlighting and support Django1.6 (Linux)

- vnStatSVG: traffic monitoring software vnStat (Linux)

- Ubuntu 14.04 / Linux Mint 17 How to install the MintMenu 5.5.2 menu (Linux)

- Novice Advanced Ubuntu7.10 configured IP address (Linux)

- Ant command-line compiler Android project (Programming)

- Linux basic introductory tutorial ---- simple text processing (Linux)

- Linux script to copy the folder to all folders with the same name (Linux)

- Docker command Detailed (Linux)

- Linux Command-line MySQL summary (Database)

 
         
  Linux Change ssh port and disable remote root login at
     
  Add Date : 2017-08-31      
         
       
         
  As we all know, ssh default port number is 22, to change the port number is 9688, you need to edit / etc / ssh / ssh_config and / etc / ssh / sshd_config file to two;

Prohibit root remote login, you need to edit / etc / ssh / sshd_config. (May be part of the Linux directory is / etc / sshd, modify according to actual situation)

Follow these steps:

1, edit / etc / ssh / ssh_config file:

[Root@abctest ~] # cat / etc / ssh / ssh_config | grep Port

Port 9688

Port 22 will be commented out before the comment symbol "#" is removed, and the 22 of 9688 to above, save and exit.

2, edit / etc / ssh / sshd_config file:

#vim / etc / ssh / sshd_config

Find PermitRootLogin, will be back yes to no, so you can not root remote login, and save and exit.

3, restart ssh:

# / Etc / init.d / ssh restart

This successful change ssh port number, and prohibits remote login root out. It is worth mentioning that, if your Linu x, only the root user before closing root remote login, be sure to create a new user, otherwise it will lead to not use ssh remote login server!
     
         
       
         
  More:      
 
- Linux FTP setting file description (Server)
- wget command examples (Linux)
- GAMIT 10.50 installed in Ubuntu 12.04 system (Linux)
- How to override the plain text files and directories soft connection in linux (Linux)
- Mac OS X 10.9 build Nginx + MySQL + php-fpm environment (Server)
- Installation Flow N Play- interface stylized video player on Ubuntu (Linux)
- Python basis: os module on the file / directory using methods commonly used functions (Programming)
- Linux system find command Detailed (Linux)
- PostgreSQL Source Customization: Online global read only (Database)
- Oracle Data Guard LOG_ARCHIVE_DEST_n optional attribute parameters (Database)
- Linux Security Setup Guide (Linux)
- How Linux Log Analysis (Linux)
- MySQL partition table Comments (Database)
- Linux Workstation Security Checklist - from the Linux Foundation Internal (Linux)
- FFmpeg compiled with only H264 decoding library (Programming)
- Hard disk encryption to protect data security (Linux)
- Install Firefox 32 official version of the Linux system (Linux)
- SSH without password (Linux)
- Linux package management (Linux)
- MySQL + Corosync + Pacemaker + DRBD build highly available MySQL (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.