Tags: root user pre Gen free tar Certified User Auth SimplifiedIn order to simplify the SSH process, the use of the certificate method, the SSH login to avoid the need to enter the account password process, the specific operation is as follows:One, on the machine where the SSH server1. Log in as root, change the SSH config file/etc/ssh/sshd_config, and remove the comments from the following configurationRsa
If we need to manage other machines remotely, we usually use Remote Desktop or Telnet. Linxu servers are almost all command lines, so you can only use Telnet. The disadvantage of Telnet is that communication is not encrypted, very insecure, and only suitable for intranet access. To solve this problem, an encrypted communication protocol, SSH, is introduced. SSH is the full name of secure Shell, using asymmetric encryption, the transmission of content using RSA or DSA encryption, can effectively
Linux under A Password-free login B There are now two Linux servers a:192.168.1.111,B: 192.168.1.112 1, in a ( 192.168.123.111 Span style= "font-family: ' The song Body '; >) to generate the public key pair, the command is as follows: ssh-keygen-t rsa-p "' ,650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M00/7E/9E/wKiom1cFssvR6AqeAAGgRAe9seo341.jpg "title=" 8.jpg " alt= "Wkiom1cfssvr6aqeaagg
recommend the first.) (Root account's home directory/root/.ssh/authorized_keys))In this step you may encounter a problem with the/HOME/USER1/.SSH directory that does not exist (note that when creating the directory owner and the owning group drwx------2 user1 user1 4096 January 00:06. SSH), you can create it manually, and modify the directory permission to 700 can also execute the ssh-keygen command to generate this directory.Backup Method 1)[email protected]. ssh]# scp/root/.ssh/id_rsa.pub [Em
Linux SSH password-free login configuration because of learning hadoop, SSH password-less login is required between clusters, so before installing hadoop, you must configure password-less SSH Login between machines. How do I Configure SSH login without a password? The follow
need to enter the password, then do not need.Problems you may encounter:1. When SSH is logged in, it appears: Agent admitted failure to sign using the key.Execution: $ssh-add2. If there is no error prompt, you can login with the password, but it is not possible to login without password, on the connected host (such as a to B to initiate an SSH connection, on B)
Environment:
SSH server:192.168.100.29 server.example.comSSH client:192.168.100.30 client.example.com
Create secret key authentication through root user to implement Shell script management, distribution, deployment
First, the client side creates the secret key pair and distributes the public key to the SSH server that needs to be logged on
Note: The public key is equivalent to a lock, the private key is equivalent to a key, we here is equivalent to create a pair of keys and locks on the cli
Create Putty.exe shortcut, right click Putty Shortcut, properties, target, plus account password port parameters, save, close;Putty.exe [-ssh |-telnet |-rlogin |-raw] [[Email Protected]]hostExample:putty-ssh-l VAGRANT-PW vagrant-p 2222 127.0.0.1-V Print version information and exit-PGPFP print PGP key fingerprints and exit-V Show verbose messages-load sessname load settings from saved session-ssh-telnet-rlogin-raw Force use of a particular protocol-p
Basic steps:
It is recommended to delete the current user. ssh/file
Ssh-keygen generates a key pair, pub ends with a public key
Ssh-copy-id [email protected] Copy the pub public key to the user home directory. ssh/
Test no password login ssh [email protected]
01: Generate a key pair, you can also encrypt the secret key! 02: Check the key in the home directory, copy the current public key to the target user home directory!03: Test No
SSH Automatic Login (password-free) is actually nothing difficult for me to enter the user name and password every time I use SSH, but it is relentlessly despised by my colleagues. T creates the Public Key 1ssh-keygen-t rsa and ignores any prompts from it. Press enter to the end happily ~ Copy the public key to the remote host and copy the Public Key id_rsa.pub t
In the run startweblogic.sh need to enter a valid account password to start WebLogic, in order to simplify the operation, you can configure the boot.properties to avoid the password, the configuration method is as follows:1. See if there is no servers directory under./domains/xxx_domain/, if not, the description has never been used this domain, need to start once, let WebLogic parameter servers directory;2.
now it's to install the new keys [emailprotected] ' s password: Number of key (s) ad Ded:1 Now try logging into the machine, with: "ssh" [emailprotected] ' " and check to make sure That's the key (s) you wanted were added. [[emailprotected] ~]# ssh-copy-id-i. ssh/id_rsa.pub [emailprotected] # deploy public key to KVM server the authenticity of Host ' 10.0.0.30 (10.0.0.30) ' can ' t be established. ECDSA key fingerprint is c3:a2:bc:39:7d
1.A Computer implementation without password login to b computerVim/etc/ssh/sshd_config Editing files01. Generate an SSH key on a computerSSH-KEYGEN-T RSA02. Place a computer-generated id-rsa.pub into the ~/.SSH directory in computer BSCP ~/.ssh/id_rsa.pub [email protected] The computer's ip:~/.ssh/need to enter the password last time03. Generate the identity of the management a computer in B computerCat Id
Just beginning to contact, not very familiar with, make a small record, later revisionGenerate public and private keysSsh-keygen-t Dsa-p "-F ~/.SSH/ID_DSAImport the public key into the Authorized_keys fileCat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keysUnder normal circumstances, SSH login will not need to use the passwordIf prompted: Permission denied, please try againModify SSH configuration, path/etc/ssh/sshd_configPermitrootlogin Without-passwordChange intoPermitrootlogin YesIf the above conf
, more than 1GB is recommended./home: The data for ordinary users is the host directory of ordinary users, the recommended size is the remaining space./: The root directory of the Linux system, all directories are hung under this directory, the recommended size is more than 5GB./ tmp: The temporary disk in a separate partition, you can avoid the system when the file system is full of stability affected. The recommended size is above 500MB.Swap: Implements virtual memory, the recommended size is
to:Pubkeyauthentication Yes
4. TestingLog on to the server using the key on the client:[Email protected]:~$ ssh-i ssh/id_rsa [email protected]last login:tue May 9 15:14:01 from 10.0.0.129[[email prote CTED] ~]#
5. Precautions
In the server side need to turn selinux off, or finally can not use the key for remote login;
When the client uses the SCP command, it also needs to install the SSH client on the server side, otherwise it can not upload the public key to the server
.#############################################################################Precautions:1. If you want to reload a node such as reload Node2, perform the following 4 steps sequentially◆ You need to back up the ssh directory under /etc/before reloading the Node2◆ After the reload is complete, replace the SSH directory in the /etc directory with the backup SSH directory and restart the SSH service .◆ then copy the. SSH directory from Manager,node1 or node3 to the /root directory in Node2finall
Tags: 1.2 technical ini Gate logs post secure strong machine1. Securefx cannot connect to virtual UbuntuUbuntu has installed Openssh-server,Auto ENP0S3Iface enp0s3 inet StaticAddress 192.168.1.20Netmask 255.255.255.0Gateway 192.168.1.11Dns-nameserver 233.5.5.5Change to address 192.168.1.20 #与宿主机器在同一局域网段Then restart the networksudo/etc/init.d/networking restart2. Ping www.baidu.comResolve into www.a.shifeng.com is possible, stating that Dus parsing is not a problemBut still host unreachable, the
Assume that there are 2 servers a (127.0.0.1) and B (192.168.0.1), a as a client to log on to Server B1. Use Ssh-keygen-t ras-p ' under Server AGenerate Public key (Id_rsa.public) and private key (Id_rsa) in the ~/.ssh directory2. Copy the generated public key to the ~/.ssh/autorized_keys in Server B.SCP ~/.ssh/id_rsa.public [Email protected]:/root/.sshNext, enter the login password for Server B3. Log in to Server B and enter your
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.