Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ SSH mutual trust configuration     - VMware virtual machine can not start VMnet0 no Internet access and other issues (Linux)

- How to set cache valid time in Apache (Server)

- Linux process management related content (Linux)

- Learning UNIX good habits (Linux)

- CentOS Set the Mono environment variable (Server)

- Linux System Getting Started Learning: hard disk partition, and to deal with traps (Linux)

- Python 2 Chinese garbage problem solved (Linux)

- Setting Wetty do not need an account login command line operations (Linux)

- Linux user status query, and to unlock locked user (Linux)

- Increase Linux system security --chattr (Linux)

- The user of fedora is not in the sudoers file method to solve (Linux)

- Ubuntu installation 2.10.x version of Scala (Linux)

- VMware clone Linux find eth0 (Linux)

- Install Firefox 28 on Ubuntu, Linux Mint (Linux)

- Linux --- process handle limit summary (Linux)

- Oracle 11g new features of the collection of multi-column statistics (Database)

- Linux see whether there is a hacker program (Linux)

- Python context managers (Programming)

- To build Spring RestTemplate use HttpClient4 (Programming)

- How to migrate MySQL to MariaDB under linux (Database)

 
         
  SSH mutual trust configuration
     
  Add Date : 2018-11-21      
         
         
         
  Specific configuration:

Premise needs to close iptables and SELinux

1. Open the ssh configuration files, enable the following options

vim / etc / ssh / sshd_config

RSAAuthentication yes # Allow RSA authentication

PubkeyAuthentication yes # allow public key authentication

AuthorizedKeysFile .ssh / authorized_keys # public storage address

#PermitRootLogin Yes if you want to log in as root ssh trust, the project must not enable this option

2, restart the ssh service

/etc/init.d/sshd restart

3, to generate public and private key:

ssh-keygen -t rsa -P ""

-P The password, -P "" says a null password, you can not have -P parameter, this three vehicles will enter, with -P to a carriage return.

The default in ~ / .ssh directory two files are generated, private and public id_rsa id_rsa.pub.

4, import public key to the certification documents, change permissions

2.1 into native authorized_keys file (as a backup)

cat ~ / .ssh / id_rsa.pub >> ~ / .ssh / authorized_keys

2.2 To Free password into the server's authorized_keys file

First, copy the public key to the server

scp ~ / .ssh / id_rsa.pub xxx @ host: /home/id_rsa.pub

Then, the public key into the certificate file (this step of the operation on the other server)

Shell Code: cat /home/id_rsa.pub >> ~ / .ssh / authorized_keys

2.3 Change permissions on the server

chmod 700 ~ / .ssh

chmod 600 ~ / .ssh / authorized_keys

5, the test landing

ssh 192.168.111.111

If the port is not the default ssh, ssh command when you want to add -p port number

E.g:

ssh -p 10000 192.168.111.111

6. Disconnect ssh landing

exit

7, across multiple servers ssh mutual trust, just do more of the same operating only on multiple servers.
     
         
         
         
  More:      
 
- Use Visual Studio to compile and use WinGDB remote debugging embedded Linux programs (Programming)
- Android Dynamic efficiency articles: a brilliant Loading Analysis and Implementation (Programming)
- Compile Android libwebcore.so error occurs when solving (Programming)
- MySQL flip-flop (Database)
- Linux security configuration (Linux)
- Install Oracle database error process of [INS-35172] (Database)
- Using RAID in Linux: Create a RAID 5 (Linux)
- CentOS6 5 source compiler installation Hadoop2.5.1 (Server)
- Nginx Installation and Configuration (Server)
- Binding multiple network cards in Linux using command nmcli (Linux)
- Linux system using the command line shutdown or restart (Linux)
- JDK comes with tools JPS (Linux)
- How ONLYOFFICE collaborative editing document on Linux (Linux)
- Ubuntu 14.04 and derivative versions of the user install Pantheon Photos 0.1 (Linux)
- CentOS 5.11 Open VNC access (Linux)
- Parameters of the extra port MySQL 5.6 (Database)
- Linux uses the SMTP proxy to send mail (Linux)
- Linux character device - automatically creates the device nodes and devices (Linux)
- ASM learning overview (Database)
- Spring AOP (Programming)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.