Environment:Master192.168.38.45Slave192.168.38.58192.168.38.60First, configure a one-way, master-to-slave-free key ssh login.One-way configuration:1. On master and all slave, use the yourname user name to execute:Copy Code code example:Ssh-keygen-t dsa-p '-F/HOME/YOURNAME/.SSH/ID_DSA2. Under Master's/home/yourname/.ssh
Public-key authentication is the use of a pair of cryptographic strings, a public key, which can be seen by anyone, used for encryption, and another known as a key (private key) that only the owner can see for decryption.When using Jenkins to automatically build and remotely log on to the server for publishing applicat
Configure SecureCRT to log on to the server using the SSH public key.
To facilitate server management, one function of CRT is very convenient. That is, you can use the private key to authenticate and connect directly, and the password protection is more secure.
First configure ssh
Port 32812Protocol 2UseDNS noPubk
To solve ssh Public Key authorization failure, follow these steps: 1. the client generates id_rsa.pub and id_rsa2. the server is. ssh/authorized_keys is also added to id_res.pub3 of the client. /etc/ssh/sshd_config enabled: Shell code www.2cto. comRSAAuthenticat... to solve ssh
Linux system to do the secret, key login to pay attention to a few points:
/ROOT/.SSH Directory permission is 700
SELinux to close
/root/.ssh/authorized_keys file name to write to
File content to paste to
-y openssh-clients Host A: ssh-keygen /root/.ssh
Git is a distributed Code management tool, remote code management is SSH-based, so to use the remote git requires SSH configuration.The SSH configuration for GitHub is as follows:First, set up Git's user name and email:$ git config--global user.name "liujufu" $ git config--global user.email "[Email protected]"Second, the process of generating
1 Open No keyTo configure HDFs, you first have to configure the non-key between the machines. We are here for convenience, the two-way non-key between the machine is configured.(1) Generate RSA key informationSSH-KEYGEN-T RSAAll the way to the return until a graphical structure is generated, the RSA private key ID_RSA
Method one using the SecureCRT tool1. Open our SECURECRT client and click Tool-->create Public Key.2. Key type We choose an asymmetric type of RSA, follow the prompts next.3, the passphrase settings, when connected to the server need to input, after the settings can be changed by SECURECRT.Next, the key length, 2048.4.
Document directory
Remove the offending SSH key
Remove the offending SSH key
Following error will be displayed when the remote host key changes (after you 've connected earlier with a valid remote host key ).
@@@@@@@@@@@@@@@@
SSH uses public key login client settingsFirst Ssh-keygen generate a pair of keys and then upload the public key to the server and then cat xx.pub >>. Ssh/authorized_keysThen the client how to let SSH login to know which private
Set SSH Key for Git and sshkey for git
Set SSH Key1. check whether there is an SSH Key.$ Cd ~ /. SshIf this directory is not available, go to step 3.2. Backup3. generate a new SSH file.$ Ssh
By Ssh-keygen creating the key on the client, you can see that the LS ~/.ssh/id_rsa is the user's private key, and Id_rsa.pub is the public key. SSH-KEYGEN-T encryption type of the specified k
1. See if you already have an SSH key: CD ~/.sshIf there is no key then there will be no such folder, there is a backup to delete2. Survival key:
$ ssh-keygen-t rsa-c "your Mailbox"Press 3 to enter, the password is empty.
Your identification has been saved In/home/t
:9.3.1 run puttygen;9.3.2. Choose conversions> gennery,9.3.3 select the file user1key and the prompt "Enter passphraseKey ", enter the passphrase keyword used to create a public/private key pair,9.3.4, then select parameters as SSH-2 DSA (if the public key is generated using RSA, select
=" Wkiol1ifwcwdzfkwaacng3pedso713.jpg-wh_50 "/>Connect to the Linux client, go to the home directory of the user to log in to the remote key, enter the ~/.SSH directory (if no one can be created, its permission is 700), use the RZ command to upload the password file on the local host to the ~/.SSH directory of the Linux client, The modified file name is Authoriz
vim/etc/ssh/~. ssh/2. # As for home-made public key data is placed in the user's home directory. ssh/authorized_keys inside rsaauthentication yespubkeyauthentication yesauthorizedkeysfile %h/. SSH/authorized_keys# with the certificate login, disable password login it,
An SSH public key authentication process:Sshclinet machine: Generate Public private key (public key equivalent to a lock)Sshclient: Sends the public key to Sshserver (throws the lock)Sshclinet Sshserver don't need a key.?Two
Tortoisegit uses a key with an extension of PPK instead of the RSA key generated by Ssh-keygen. Use the command ssh-keygen-c "e-mail Address"-t RSA generates a key that is not available in Tortoisegit. and git-based development must use the RSA
Question
Each time before using Putty remote connection, you need to enter a password, remember that you can use SSH to achieve password-free login, so try it.
First, on remote Linux, a pair of RSA public key pairs is created with Ssh-keygen, and the private key is copied to the Windows system via Putty Connection->
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.