Hadoop deployment requires SSH password-free login.On the official website there are two words:1.$ ssh-keygen-t Rsa-p "2.$ Cat ~/id_rsa.pub >> ~/.ssh/authorized_keysBut there are a lot of problems on my machine that have always been SSH or require a password, write it all down here:The 1.authorized_keys permission must be 600. And the default is not to generate a
target account of the PCB machine from the PCA machine and no longer need the password.5, set file and directory permissions "This step can be omitted, but for the sake of safety, plus is also necessary ~"Set Authorized_keys Permissionschmod 644 Authorized_keysSet the. SSH directory permissionschmod 700-r. SSH6, to ensure that. ssh and Authorized_keys only the user has Write permission . Otherwise, validation is not valid.(Today is the problem, looki
First, the situation
The company has just a few Linux, now to the host between the remote SSH password-free login.
Second, the principlequite simply, using Ssh-keygen to generate private and public keys on host A, copying the generated public key to remote machine Host B, you can use the SSH command to log on to another machine Host B without a password.
Third
Tags: [] tool launch port user password pass show JSONEnter password-free loginNo need for third-party software such as Iterm and Zoc, alias (pure terminal) and shuttle (with UI) to log on to the target machine using the password (no manual input required)Preparation ToolsSshpass,shuttlePassword configuration filePassw
Requirements: When you need to manage more than one server, back and forth to switch the host when entering the password is a very troublesome thing, this time you can use Ssh-keygen password-free login.Simple machine Process: If a requires password-free login b, use Ssh-key
For Mac OS install Ssh-copy-id:Brew Install Ssh-copy-idFor Linux Install Ssh-copy-idYum Install openssh*STEP:1: Generate SSH Public key[Email protected] ~]# ssh-keygen-t DSAGenerating Public/private DSA key pair.Enter file in which to save the key (/ROOT/.SSH/ID_DSA):Enter passphrase (empty for no passphrase):Enter same Passphrase again:Your identification has been saved IN/ROOT/.SSH/ID_DSA.Your public key has been saved in/root/.ssh/id_dsa.pub.The key fingerprint is:6e:20:94:d5:e1:cc:42:9f:37:d
Configuring SSH password-free login takes 3 steps:1. Generate public and private keys2. Import the public key to the authentication file, change the permissions3. Testing1. Generate public and private keysShell Code SSH-KEYGEN-T RSAThe default is to generate two files in the ~/.ssh directory:Id_rsa: Private keyId_rsa.pub: Public Key2. Import the public key to the authentication file, change the permissions
Configuring SSH password-free login takes 3 steps:1. Generate public and private keys2. Import the public key to the authentication file, change the permissions3. Testing1. Generate public and private keysShell Code SSH-KEYGEN-T RSAThe default is to generate two files in the ~/.ssh directory:Id_rsa: Private keyId_rsa.pub: Public Key2. Import the public key to the authentication file, change the permissions
/id_rsa.pub.The key fingerprint is:B4: 51: 7e: 1e: 52: 61: cd: fb: b2: 98: 4b: ad: a1: 8b: 31: 6d root@node1.ehowstuff.localThe key's randomart image is:+ -- [RSA 2048] ---- +|. ++ || O || O. ||. O +... || S .. ||... || O E oo. o || = Ooo. ||. O. o. |+ ----------------- +Step 3:Use the ssh-copy-id command to copy or upload the public key to the remote host, and append the id file to ~ of node 2 ~ /. Ssh/authorized_keys:[Root @ node1 ~] # Ssh-copy-id-I ~ /. Ssh/id_rsa.pub 192.168.0.10Root@192
In Linux systems, password-free login is a common feature, especially in shell scripts. The actual production has been equipped with many times, but also to help others to solve the problem of landing failure; it is easy to find this feature, but there are some issues to be aware of throughout the configuration process. I hereby record the memo!Most of the resources on the Internet is to create a key, and t
principle:Each node of Hadoop is able to communicate with each other in real-time, and SSH is the one that allows each node to communicate with each other by password-free access.Operation steps:The encryption method used here is non-symmetric encryption, the specific operation is:Authentication: SSH localhost or ssh 192.168.80.100implementation results:When a host wants to connect to a particular host, it
SSH does not have password logon to use the public key and private key. Linux can be used to generate a ssh-keygen public/private key pair, below I take centos for example.There is machine A (192.168.1.155), B (192.168.1.181). Now want a password to login to B via SSH.1. Generate a public/private key pair under a machine. [Chenlb@a ~]$ ssh-keygen-t rsa-p '
-p means the
SSH password-free Login
SSH password-less logon requires the public key and private key. In Linux, ssh-keygen can be used to generate public/private key pairs. The following uses CentOS as an example.
There are machines A (192.168.1.155) and B (192.168.1.181 ). Now I want A to log on to B via ssh without A password.
1.
Data transmission and remote command execution in an openwrt Environment Based on ssh and password-free
This name is a bit too much X.
In fact, the problem is very simple. In general, openwrt runs on some embedded platforms or routers, and such platforms often do not have much resources, such as hard disk storage. However, some data, such as traffic, can only be captured and temporarily stored on it. Over t
First, generate the public key on the local machine: Java code [root@localhost.ssh] # ssh-keygen-d always press the Enter key Generatingpublic/privatedsakeypair. enterfileinwhichtosavethekey (/root /. ssh/id_dsa ):...
First, generate a public key on the local machine:Java code[Root @ localhost. ssh] # keep pressing the enter key for ssh-keygen-dGenerating public/private dsa key pair.Enter file in which to save the key (/root/. ssh/id_dsa ):/Root/. ssh/id_dsa already exists.Overwrite (y/n )? YEnt
First, generate a public key on the local machine:Java code[Root @ localhost. ssh] # Keep pressing the Enter key for ssh-keygen-dGenerating public/private dsa key pair.Enter file in which to save the key (/root/. ssh/id_dsa ):/Root/. ssh/id_dsa already exists.Overwrite (y/n )? YEnter passphrase (empty for no passphrase ):Enter same passphrase again:Your identification has been saved in/root/. ssh/id_dsa.Your public key has been saved in/root/. ssh/id_dsa.pub.The key fingerprint is:89: 77: aa: a2
1,SSHPassword-Free loginRoot login 192.168.121.212, and then use the Tomcat account SSH telnet 10.14.13.16, do not need to enter a password, need to achieve the following effect:
[email protected]. ssh]# ssh [email protected][Email protected] _web1_13_16 ~]$
The idea is to use a key that generates RSA and then copy the generated public key to the/home/tomcat/.ssh/directory on the
Note: SSH password-free interoperability, should be for more than one server communication, I only use a server to do processing. 1, modify the host name.
Vi/etc/sysconfig/network
Networking=yes
hostname=centos1
vi/etc/hosts
#末尾添加 IP host name
192.168.9.129 CENTOS1
Hostname centos1
#修改主机名临时生效
2, no password login implementation
2.1. Create Public key with S
We often need to log on to the Unix/Linux System Using SSH, and use SCP to transmit data. We always need to enter a password. Isn't it annoying?SSH supports multiple login authentication methods. The default mode is keyboard-interactive, that is, the one that manually enters the password. In practical applications, you sometimes need to log on to the SSH server without a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.