Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS6 5 Configure SSH password Free     - Remote installation of Net-SNMP whole process (Linux)

- Java loop list to solve the problem of Joseph ring (Programming)

- Overall Physical Migration of Oracle Database with (Database)

- CentOS7 iptables (Linux)

- How to download video youtube-dl in Linux (Linux)

- Network security system (Network)

- Schema snapshot rollback (Database)

- Using shell users or virtual users to login to pureftpd (Linux)

- Live Wallpaper for Linux release adds dynamic background (Linux)

- Linux user directory (Linux)

- The most concise explanation of JavaScript closures (Programming)

- Setting the RedHat9 Intrusion Detection System (Linux)

- Linux RHCS basic maintenance commands (Linux)

- Ubuntu 12.04 LTS installation configuration JDK1.6.0_45 (Linux)

- Detailed Linux su command to switch users Mistakes (Linux)

- Lua4.0 interpreter entrance (Programming)

- Cacti monitoring service Nginx (Linux)

- CentOS 6.3 compile and install LNMP environment (Server)

- Redis master-slave replication switch (Database)

- CentOS 7 hard disk expansion toss record (Linux)

 
         
  CentOS6 5 Configure SSH password Free
     
  Add Date : 2017-08-31      
         
       
         
  CentOS 6.5 Configure SSH password Free

Create a new user: useradd Hadoop
Set a password: passwd hadoop, enter the password you want, and then switch user su hadoop
Modify the host name: After vim / etc / sysconfig / network, join hostname master, log off the system to see the changes successfully
Modify the hosts file: vim / etc / hosts 192.168.56.101 master 192.168.56.102 slave1
Free ssh login to view the ssh:
[Hadoop @ master ~] $ rpm -qa | grep ssh
openssh-server-5.3p1-94.el6.x86_64
libssh2-1.4.2-1.el6.x86_64
openssh-clients-5.3p1-94.el6.x86_64
openssh-5.3p1-94.el6.x86_64
openssh-askpass-5.3p1-94.el6.x86_64
I have found that have been installed, and if there is no installation, use yum install ssh (lack of it)
Modify / etc / ssh / sshd_config RSAAuthentication yesPubkeyAuthentication yesAuthorizedKeysFile .ssh / authorized_keys
This enabled three lines, and then restart the service sshd restart
Configure now no password [hadoop @ master ~] $ cd / home / hadoop /
[Hadoop @ master ~] $ ssh-keygen -t rsa way to enter [hadoop @ master ~] $ cd .ssh /
[Hadoop @ master .ssh] $ cp id_rsa.pub authorized_keys
[Hadoop @ master .ssh] $ chmod 600 authorized_keys
Copy the authorized_keys be no secret to other machines [hadoop @ master ~] $ scp authorized_keys root@192.168.56.102: /home/hadoop/.ssh To root privileges in the past, otherwise it will go wrong

Setting .ssh directory permissions chmod 700 -R .ssh
If each machine you want to have no password, and then add each machine generated key to a file (which is executed in a controlled end loom above)
cat id_rsa.pub >> .ssh / authorized_keys
 

You can now log on from master to Free slave1, so if you want to log on to Free from slave1 master, also need to perform scp authorized_keys root@192.168.56.101 on slave1: After /home/hadoop/.ssh/ copy files to the master, the master implementation of the above: cat id_rsa.pub >> .ssh / authorized_keys
So either from master to slave1, but also from slave1 to master, are password-free login


For example, after the success of my configuration interface as follows: [hadoop @ master ~] $ clear
[Hadoop @ master ~] $ ssh slave1
Last login: Mon Nov 3 13:33:02 2014 from 192.168.56.101
[Hadoop @ slave1 ~] $ ssh master
Last login: Mon Nov 3 13:33:06 2014 from 192.168.56.102
[Hadoop @ master ~] $

If this login failures encountered: I use centos version 6.5, centos6.5 network management is quite strict and needs to close selinux in the original basis, to the next / etc / selinux / config, modify the SELINUX = enforcing SELINUX = disabled, restart the machine, ok.
     
         
       
         
  More:      
 
- Zombie process under Linux (Linux)
- How to Start a Linux application running in the background using the terminal mode (Linux)
- Java threads in the life cycle (Programming)
- Windows7 system using Vagrant to build Linux virtualized development environment (Linux)
- Redis performance test (Database)
- Oracle database import and export (Database)
- Efficient Linux Shell - Shell special characters Summary (Linux)
- impdp error ORA-31631, ORA-39122 (Database)
- OpenGL Programming Guide (8th edition of the original book) - compute shader (Programming)
- Automatic and Manual Proxy Settings Switch GNOME Shell Extension Proxy Switcher Recommend (Linux)
- 11.2.04 Oracle RAC directory crfclust.bdb file is too large, Bug 20186278 (Database)
- To install the iNode client on UbuntuKylin 13.10 (Linux)
- How to override the plain text files and directories soft connection in linux (Linux)
- MongoDB upgrade from 2.4.9 to 2.6.0 and PHP record of mongo extension upgrade from 1.4.5 to 1.5.1 (Database)
- CentOS static IP network configuration (Linux)
- Simple Linux file system - df, du, ln (Linux)
- Java concurrent programming combat (using synchronized synchronization method) (Programming)
- The relationship between UNIX and Linux (Linux)
- JDK comes with tools jinfo (Linux)
- Hadoop connection failed or stuck processing (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.