Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS6 5 Configure SSH password Free     - Linux command find (Linux)

- CentOS 7 How to install MySQL Server (Database)

- 5 fast Node.js application performance tips (Programming)

- Java factory pattern (Factory mode) (Programming)

- Getting Started with Linux system to learn: how to check memory usage of Linux (Linux)

- Growth since Oracle set the table space (Database)

- pkg-config to use (Linux)

- RVM installation instructions (Linux)

- Open Ubuntu system updates (Linux)

- Manually generate AWR reports (Database)

- Three methods easy data encryption on Linux (Linux)

- Fedora network set up simple (Linux)

- Ora-00439: feature not enabled: managed standby (Database)

- Oracle Database routine inspection (Database)

- LAN Deployment Docker-- from scratch to create your own private warehouse Docker (Linux)

- Spring WebSocket Comments (Programming)

- Thinking in Java study notes - initialization and cleanup (Programming)

- Java exception handling mechanism (Programming)

- Log in CentOS 6.5 Multi-user setting VNC (Server)

- Linux System Getting Started Tutorial: How to find the maximum memory your system supports (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 master slave1
Free ssh login to view the ssh:
[Hadoop @ master ~] $ rpm -qa | grep ssh
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@ /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@ 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
[Hadoop @ slave1 ~] $ ssh master
Last login: Mon Nov 3 13:33:06 2014 from
[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.
- Linux kernel IPv6 protocol closed manner (Linux)
- Vi editor Introduction (Linux)
- PHP 7.0 Upgrade Notes (Linux)
- Getting Started with Linux system to learn: How to compress JPEG images on the command line (Linux)
- Git / Github use notes (Linux)
- Ubuntu 14.04.02 LTS startup items erroneous writing / dev / sda1 (win 7 loader) Repair (Linux)
- Udev: Device Manager for Linux Fundamentals (Linux)
- Difference Redhat5 and 6 YUM source configuration (Linux)
- Java loop list to solve the problem of Joseph ring (Programming)
- Linux upgrade Glibc (Linux)
- Hibernate in profile (Database)
- PHP generates a random password several ways (Programming)
- Hadoop safe hftp (Server)
- MySQL event table to achieve timing build a small note (Database)
- C language programming entry - macro definitions and enum (Programming)
- Ubuntu font settings: Using Windows Font (Linux)
- GAMIT10.5 under CentOS installation (Linux)
- Reported too many open files Linux solutions (Server)
- Linux process scheduling opportunity (Programming)
- Spring Data study notes -Helloworld (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.