the code, if we all ask for JS to write comments, I will add comments into the.The relevant page functions are complete, and the next step is to run the debuggingEnter in the browser: http://127.0.0.1:81/login.html then enter the account: admin, Password: 123456, and Verification code Click Login, can normally jump to the http://127.0.0.1:81/main.html page, it means that the login interface can be used normally. You want to be familiar with the ope
2 Linux machines between the mutual SSH password-free login, assuming a, B 2 computers, there are users user1.
On Host A, execute commands with user User1
Ssh-keygen
Generate the private key id_rsa and public key id_rsa.pub, and then execute the command
Ssh-copy-id USER1@HOSTB
Copy the public key to host B and need to enter the User1 password on Host B, then
ObjectiveI'm going to write another article on my father's tutorial.What you need to figure out is that1, to understand which Linux host login which Linux host does not require a password?2, the two host user name password consistent (recommended to do so, although there is root).About itIf a host login B does not require a password, then you need to generate a p
Linux Basic tutorial Linux password-free ssh login SettingsBrother LianOverviewin some common devices ssh, SCP, do not enter the password can save a lot of time. Generate keySee if there is a local key, if there is, do not generate, otherwise it will affect the previous device.Copy the code code as follows :(brother even Linux training www.lampbrother.net)LS ~/.
1. Back up sudo filessudo CP /etc/sudoers.2. Add the current user to the Sudo groupNote that this file can only be edited with VITry using Visudo to edit/vi//sudoers firstsudo visudoIf the above instruction fails, use VI to open the editsudo VI /etc/sudoersFind root all= (all:all)All, add a similar line belowKube all= (All:all) all3. Set the current user-free passwordUse Visudo to open sudoers and editsudo visudoAdd NOPASSWD to the content you just e
In order to better understand the principle of SSH password-free login, we first say that SSH security authentication, SSH using "asymmetric Key System", known as public key private key encryption system, its security verification is divided into two levels.1. Password-based security verificationThis method uses the username
closed by $IPMay be more than the system default failure times, and then clean up OK ~ "Faillog-a;faillog-r"(2) In the case of the previous steps are correct, each telnet or prompted to enter a password, this time may be a permissions issue:chmod 644 Authorized_keys again login OK ~ "If it is red Hat 5.6, it is best to change to 600, otherwise considered unsafe ~"1 floor Purple Ying 2012-03-28 10:51 published [Reply] [citation] [report]
private key.
2, the public key will be transmitted to the remote host hosts;
$ Ssh-copy-id User@host
After two steps, you can achieve a remote login without a password (the host saves the user's public key in the ~/.ssh/authorized_keys file).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Problems:
1, to generate the key and upload to the remote host, still unable to implement password
Tags: information automatic tool operation key native token account hangSsh Password-free login sshd Service sshd Introduction: SSH keys provide a better and more secure mechanism for logging into Linux servers. When Ssh-keygen is run, a public-private key pair is generated. You can place the public key on any server, and it will be used to unlock it when the client holding the private key is connected to t
the next step to enter the key name, the recommended region-application-ip such as Shanghai-www-210 (want not to enter the password, you can not enter the password, the key name here must first change, save the file do not change the name)650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7E/35/wKioL1b58gLzZhtnAAB8RYDZtF0242.png "title=" 4.png " alt= "Wkiol1b58glzzhtnaab8rydztf0242.png"/>Click Next
Environment:192.168.2.10192.168.2.11Implementation: 2.10 SSH without password login to 2.11In 2.10 ssh to 2.11 machines, a password is required, which makes it inconvenient for some scripts to work because of the need for a password, which requires manual intervention. The previous method is to copy Authorized_keys inside (remember, before), recently found a comm
SSH password-free login, make a summary!1. Installing the SSH service (skip)2. Scenario: Need to configure host a no password login Host BOn host A, perform the following:CD ~/.sshSSH-KEYGEN-T RSAGenerate Key FileCP id_rsa.pub Authorized_keys After this step is complete, you can normally log on to the machine without a passw
Through the shell script to configure the password-free login, divided into two scripts, one is the configuration file config.env, one is the formal script sshkey.sh.# config.envExport host_user=(root) export PASSWD=(a) export ssh_host= (192.168. 165.15192.168. 165.16 192.168. 165.165)In the congfig.env file above, the Ssh_host parameter can be configured with multiple IPs to configure different usersThe s
ssh, SCP does not use the password. The method is as follows:2, two nodes perform the operation:#ssh-keygen-t RSAThen all returns, with default values.3, this generates a pair of keys, stored in the user directory ~/.ssh.test the public key into the user directory of the other machine and copy it to ~/.ssh/authorized_keys (Operation command:#cat id_dsa.pub >> ~/.ssh/authorized_keys ).4. Set file and directory permissions:Set Authorized_keys Permissio
SSH to the 192.168.88.61 machine requires a password, which is inconvenient for some scripts because of the need for a password, which requires manual intervention. Recently found a command Ssh-copy-id is very convenient, tested, and sure enough to use, recorded:On the 192.168.88.61 machine.1) Run: ssh-keygen-t RSA2) Then take two returns (select default)3) Run: ssh-copy-id-i/root/.ssh/id_rsa.pub [email pro
In order to facilitate user login, almost all of the website has realized the "Remember Password", "automatic landing" such as seemingly humanized function.I also like this function, because my own brain is really hate to remember things.For the sake of security, my password is very complex, satisfying "number + special symbol + English letter case".But the password
Work often to log on the Linux host too many, each time the password is too troublesome, with a few password-free login, each time can not remember, this time to write down to forget.First use the Ssh-keygen tool on your own machine to create the key, as followsssh-keygen-t rsaTo automatically generate ~/.ssh/authorized_keys files on the target server using the S
On the client operation
SSH-KEYGEN-T RSA
File location write/home/try/.ssh/server_rsa, do not use default values, I named Server_rsa worry about the impact of Git key (because my git is using the default value)
Ssh-copy-id root@123.45.56.78 (Your server IP),
or this use
Cat ~/.ssh/id_rsa.pub | SSH user@123.45.56.78 "mkdir-p ~/.ssh cat >> ~/.ssh/authorized_keys"
You can upload your client key to the server's ~/.ssh/authorized_keys file or manually copy it.
Operating
Recently engaged in a VPS, with Putty landing every time to enter the root account password, more trouble, so the internet to find the SSH certificate method.In fact, this should be the Putty recommended authentication method.1. Generate the key using the Putty SSH key generation tool Puttygen.exe.Generated key type and number of bits by default, SSH-2 rsa,1024 bitSave the private key to local, you will be prompted to save the private key to set 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.