Yum Search ssh: query for an installable SSH package
Yum install-y openssh: Installing an SSH Package
Yum List installed OpenSSH: Whether the query is installed OpenSSH
Configure login without password
1. switch from root user to Hadoop user
2. Create an. ssh file under the root path (/home/hadoop)
mkdir. SSH
3. Generate key
Ssh-keygen-t rsa-p ""
4. Enter the. SSH directory
CD. SSH
5. LS View
Look, there's a public key and a private key.
6. Put the public key into the Linux authentication
CP Id_rsa.pub Authorized_keys
7. LS View directory contains an authentication file Authorized_keys
8. View specific Content
VI Authorized_keys
9. Exit to the root directory. SSH authorization
chmod. SSH (r:4 w:2 x:1)
chmod. ssh/*
10. Test ssh with SSH host name
SSH Cjqlinux
Configuring sudo
1. Visudo into the edit page
2. Find root all = (all) All this line and copy the row
3. Change the root user name to another user name to configure
4.: x Save and exit
This article is from "Sky" blog, please make sure to keep this source http://chijunqing.blog.51cto.com/3937201/1748611
Big Data Environment Build--ssh No password login