Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS6 5 Configure SSH password Free     - Why is better than Git SVN (Linux)

- Node.js installed on Ubuntu Upstream version (Linux)

- How to configure Proftpd server on Fedora 22 (Server)

- Oracle metadata Reconstruction experiments (Database)

- Oracle procedure or function Empty Table (Database)

- Erase do with HTML5 Canvas and diffusion effect (Programming)

- Reason C ++ program running under Linux a segmentation fault core dumped in (Programming)

- NaSC using simple mathematical operations on Ubuntu and Elementary OS (Linux)

- Approach the next Linux shared interrupts (Linux)

- Machine Learning: Classification of the curse of dimensionality (Programming)

- Shell scripts quickly deploy Tomcat project (Server)

- Ubuntu upgrade to Linux Kernel 4.2.3 Kernel (Linux)

- RPM package creation Getting Started (Linux)

- Easily solve the MySQL database connection error too many (Database)

- Exploring the Android Listview display confusion (Programming)

- Java object serialization and deserialization (Programming)

- Linux, modify the fstab file system can not start causing solve one case (Linux)

- wget command usage Explanation (Linux)

- Linux user login and IP restrictions (Linux)

- Rails 4.1.6 start being given Could not find a JavaScript runtime (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.
- Android Service service applications and the phone SMS Listener Listener (Programming)
- Logging information through the web GUI (LogAnalyzer) (Server)
- Gitlab installation under CentOS 7 (Linux)
- Linux how to handle file names that contain spaces and special characters (Linux)
- Spring Data study notes -Helloworld (Programming)
- Ten SCP transfer command example (Linux)
- Firewall types and instructions (Linux)
- Zabbix configure DataGuard monitoring (Database)
- [JavaScript] catch (ex) statements of ex (Programming)
- How to contribute code to the GNU Project (Linux)
- Ubuntu install video playback software SMPlayer (Linux)
- RealVNC Server 5.2.3 Installation and Configuration In Fedora (Server)
- Depth understanding of Python character set encoding (Programming)
- How to configure a server in a MySQL Cluster (Database)
- How to track performance issues when using the Unity Game Development Android (Programming)
- Debian (Wheezy) were installed wxPython GUI development (Linux)
- Java to achieve local fileCopy (Programming)
- Java enum use (Programming)
- About redis in Replication (Database)
- Ubuntu 14.04 installed NVIDIA graphics driver (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.