Premise: Install git and open git bash.1. Enter the. SSH folder:cd ~/.ssh/ If you do not have this folder, create one yourself: mkdir ~/.ssh2, set the GIT global name and email, if it has been configured beforehand, it will not have to be configured.git config--global user.name "yourname"git config--global user.email "[Email protected]"3. Generate your key:
+/4cQpFN53TTO4iny3cQnwELPS68x + Cc0NTuqu9doYarCOX08tYO/dasfsqcPSD2psQ =---- END SSH2 public key ----ModifyAAAAB3NzaC1yc2EAAAABJQAAAIB... (indicates omitted) change to a row and delete the linefeed.SaveII. Server configuration1. selinux needs to be disabledTwo methodsMethod 1:Run the following command to temporarily disableSetenforce 0Method 2:Modify the/etc/selinux/config file and set SELINUX = disabledSave and restart the server.2. Upload the modifi
Use SSH login VPS generally use the ip+ port, enter username and password to log in
In order to enhance the security of the VPS, use the public key and the private key way to login VPS
The specific methods are:
Generate key on Linux remote server:ssh-keygen-t RSA
And then you can get a
I used a command to generate a key under my Mac, ssh-keygen and I set a password for the key on my own, so that I had to enter the password once every time I came in git push :for /Users/zhaohd/.ssh/id_rsa:With too much trouble, I want to get rid of it, go online check, found that
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
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 "[Email protected]"You need to change the email address to your own email address, and then return to the defa
1. Generate the SSH public key of GitHub in Windows1. Install git and open git bash2. type the command: SSH-keygen-t rsa-c "[email protected]" "[email protected]" to be a GitHub account3. remind you to enter the key name, such as id_rsa4. generate two files under c: \ Documents ents and Settings \ Administrator \: id_r
Recently contacted Git, is simply a small white user, so decided to record some things to prepare for a rainy daySystem Environment: Windows1. First download git,http://git-scm.com/download/2. Install git normally3. Build a directory of your own, then right-click on Git bash4. Set up your own user name and email for git:$ git config--global user.name "yourname"--global user.email "Youremail"5. Generate SSH Key
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
1. Install git and open "Git Bash" 2 from the program directory. Type the command: ssh-keygen-t rsa-c "[email protected]" "[email protected]" is a GitHub account 3. Remind you to enter the name of the key, such as ID_RSA4. Two files are generated under C:\Documents and settings\administrator\: Id_rsa and ID_RSA.PUB5. Copy the key file generated in 4 into the C:\D
Log in with the account you want to create a login key forGenerate key#ssh-keygen-t RSAGenerated when prompted to enter a password, if not entered, then directly enter, if entered, will be required to enter the password in the non-key loginEnter the build directory. SSH#cd ~
Some servers have recently been replaced, but some servers have not been replaced. I was rejected when I logged on to other servers via SSH on the original server.
Run: ssh xxx. XXX
Result:
@ Warning: remote host identification has changed! @It is possible that someone is doing something nasty!Someone cocould be eavesdropping on you right now (man-in-the-middle attack )!It is also possible that the RSA h
After the build, I copied the copy to the public key of the coding, and then modified the test code, but when the code is submitted to jump out please enter the user name and password, this is puzzled. There are two ways of git push, ssh and HTTPS. And the HTTPS way is different, specifically, is the URL information is different, the actual verification mechanism is also different. When this
git-1.9.5-preview201412171. Install git and open "Git Bash" from the program directory2. Type the command: ssh-keygen-t rsa-c "[Email protected]""[Email protected]" is Gitlab account3. Remind you to enter the name of the key, such as Id_rsa4. Generate two files under C:\Users\Administrator\.ssh: Id_rsa and Id_rsa.pub5. Open the Id_rsa.pub file with Notepad, copy
1, the approximate process:Installing the GIT Client toolLocally generated key pair;Set the public key on GitHub or Gitlab;Modify git's remote URL as git protocol (HTTPS is not recommended)git uses the HTTPS protocol, each pull, push to enter a password, Using the GIT protocol, SSH keys are used. You can save the password every time, but be sure to keep your own
; default:waiting for Mac Hine to boot. This could take a few minutes ... default:ssh address:127.0.0.1:2222 default:ssh username:vagrant default:ssh A Uth MeThod:private Key
Then CTRL + C forces the end and then uses Homestad halt to shut down the virtual machine. The following prompt appears:
$ homestead halt==> default: Attempting graceful shutdown of VM... default: Guest communication could not be established! This is usually because defaul
1. Generate SSH Key:Ssh-keygen-t rsa-c "[Email protected]"At this point, there will be two files, Id_rsa and id_rsa.pub under the ~/.ssh/folder. Save the SSH key and the public key separately.2. Copy the contents of the id_rsa.pub into the Ssh_key section of the Gitlab serve
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.