Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ configuration ssh without password under Linux     - The Oracle VM VirtualBox use U disk under ubuntu (Linux)

- Linux SVN account password to save your settings (Linux)

- Virt Related Command Summary (Linux)

- Setting Lns firewall against ARP attacks (Linux)

- CentOS 6.x and CentOS7 install MPlayer (Linux)

- To install Ganglia configuration of experience under CentOS 5.5 (Linux)

- Why everybody ought to know LLVM (Linux)

- Some Linux networking tools you might not know (Linux)

- Linux, see picture not resolve the problem (Linux)

- CentOS 6.5 start ActiveMQ being given to solve (Server)

- Linux boot the system does not display a progress bar setting method (Linux)

- How to Install Suricata IDS on a Linux system (Server)

- Linux with Windows Explorer as a security system (Linux)

- MySQL Tutorial: Some optimized for I / O memory areas (Database)

- Linux file permissions bit forced bits and adventure Comments (Linux)

- Hadoop 2.6.0 stand-alone / pseudo-distributed installation (Server)

- Swift string common method (Programming)

- To setup the Swift language learning environment under linux (Linux)

- Ubuntu deploying Solr (4.4) to Tomcat (7.0.53) (Server)

- iOS constants, variables, properties and characteristics (Programming)

 
         
  configuration ssh without password under Linux
     
  Add Date : 2017-08-31      
         
         
         
  If you are a client Linux Client, Server for the server, user name user. Now you want to configure from Client to Server SSH login without password.

1: generate a pair of keys on the Client, execute ssh-keygen command, where you need to enter directly Enter to accept the default values, the output is as follows:

[User @ Client .ssh] $ ssh-keygen -d
Generating public / private dsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user/.ssh/id_dsa.
Your public key has been saved in /home/user/.ssh/id_dsa.pub.
The key fingerprint is:
22: 0c: 2e: 64: 09: 2e: a9: f1: 37: c5: ee: d9: e5: 57: 92: b4 user @ Client

At this time, in /home/user/.ssh directory, there are a pair of keys id_dsa and id_dsa.pub.

2: When the Server public key id_dsa.pub in any way to upload, such as:

[User @ Client .ssh] $ scp id_dsa.pub Server: / home / user

3: Log on to the Server, execute the following command

cat id_dsa.pub >> /home/user/.ssh/authorized_keys

This completes the configuration, then log in Server from Client, no need to enter the password. This form is secure, you totally do not worry about other people from other machines can no password Server. This basic principle is this:

id_dsa and id_dsa.pub you generate in the client is a pair of keys, only the private key to unlock id_dsa public key id_dsa.pub. Now you put the public key exists on the server, your login server, the server will provide through public key id_dsa.pub (the contents of which exist in authorized_keys) allows you to decrypt the encrypted data using the private key id_dsa it on your machine, to decrypt, and then unlock Server release. And other people's machines did not id_dsa this private key, they can not decrypt, and thus can not log on without a password.

Of course, you want to ensure the safety of your private key on the machine. Otherwise, if someone else has made your private key, like others he made your room key, and then you can take your family to open the door.
     
         
         
         
  More:      
 
- Ubuntu buffalo wzr-hp-300nh brush DD-WRT router system (Linux)
- Tomcat itself through simple movement separation (Server)
- Linux system package manager -RPM (Linux)
- CentOS 7 repair MBR and GRUB (Linux)
- MySQL Data Types (Database)
- How to install Ubuntu California - the calendar application (Linux)
- Remote database using RMAN recovery test (RAC return to single-instance database) (Database)
- Linux (Debian) install software, missing dynamic link libraries .so (Linux)
- Ubuntu 14.04 configure JDK1.8.0_25, switchable version (Linux)
- CV: Linux command displays the progress of the run command (Linux)
- RHEL7.0 environment Linux kernel upgrade (Linux)
- There is sort of a directed acyclic graph topology (Programming)
- Java eight new features 8 (Programming)
- Linux host dual LAN transceiver package ARP problem (Linux)
- Linux-- sub-volume compression and decompression (Linux)
- To install the mail client terminal Evolution 3.13.2 under Ubuntu 14.04 (Linux)
- Linux system security knowledge (Linux)
- Using Linux stat command to view the files (Linux)
- Android memory optimization of the optimal load Bitmap (Linux)
- Git Experience Sharing - Using a remote repository (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.