Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux Change ssh port and disable remote root login at     - Compression software on a simple comparison of zip and gz (Linux)

- Android Launcher3 Application List Modify a transparent background (Linux)

- Oracle database on the hit rate of query summary (Database)

- PuTTY Xming achieve the X11 forwarding ssh (Server)

- Linux commands with browsing and downloading files (Linux)

- Delete specific files using bash directory under Linux (Linux)

- OpenWrt modify flash size (Linux)

- Android realize RippleEffect water (Programming)

- How to use secure FTP file transfer (Server)

- Five Linux user space debugging tool (Linux)

- Android Sets the system screen brightness (Programming)

- Linux file compression and file system packaged with instructions (Linux)

- Installation salt-minion on RHEL5 (Linux)

- Postfix mail service system principle and configuration (Linux)

- How to install and configure in Ubuntu 14.10 'Weather Information Indicator' (Linux)

- EXP-00091: Exporting questionable statistics Processing Method (Database)

- Eclipse improve the efficiency of good habits (Programming)

- Graphics of Java Tools (Programming)

- Spring declarative transaction management (Programming)

- Java interface (Programming)

  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!
- RHEL6 install Python and other packages from source (Linux)
- Linux PXE unattended installation PXE-E32: TFTP OPen timeout the solution (Linux)
- How do I use Linux development environment (Linux)
- CentOS / Linux SWAP partitions added (Linux)
- Recover Ubuntu 14.04 wakes up from standby in case mouse keyboard appears dead (Linux)
- MySQL stored procedures execute dynamic sql statement (Database)
- Spacewalk remove packages install the update (Linux)
- Partition and file system under Linux (Linux)
- XtraBackup achieve non-stop use of master-slave synchronization service (Database)
- CentOS7 minimized installation can not find the 'ifconfig' command - Repair Tips (Linux)
- Father of Python: Why Python zero-based index (Programming)
- php security study (Linux)
- Ubuntu how to install and use Objective-C (Linux)
- Download Manager uGet 2.0 installed in Debian, Ubuntu, Linux Mint and Fedora (Linux)
- GoldenGate for Oracle data consistency initializing (Database)
- Ten best plug surge Emacs Productivity (Linux)
- Database Blob data type conversion String (Programming)
- Install Java JDK 8 in CentOS 7 / 6.5 / 6.4 (Linux)
- See how --nand flash timing diagram of a read operation Comments (Programming)
- Using PHP MySQL library (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.