Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ SSH does not require a password to log on to a Linux server     - How to create a cloud encrypted file system in Linux systems (Linux)

- Ora-00020: maximum number of processes (500) exceeded (Database)

- Linux Monitoring Command (Linux)

- Configuring a Linux operating system security management services (Linux)

- Detailed Linux platform chip programming process (Programming)

- Oracle 11g new features of the collection of multi-column statistics (Database)

- Linux5.8 installed phpMyAdmin was unable to issue related php-mcrypt (Database)

- Start Linux ISO image directly from the hard disk (Linux)

- How to use the on-screen keyboard in Linux (Linux)

- Xshell configure SSH free password (Server)

- Ubuntu 14.04 / 14.10 how to install Mate 1.10.0 (Linux)

- JBoss7 configuration - Supports IPv4 and IPv6 dual-stack environment (Server)

- Spring Integration ehcache annotation implement the query cache and cache update or delete instant (Programming)

- Installation of Python2.7.8 and iPython under CentOS6.5 (Linux)

- To use Android RecyclerView (Programming)

- MySQL5.7 JSON type using presentation (Database)

- How to add two-factor authentication for Linux systems SSH (Linux)

- SVN common commands (Linux)

- Eight sorting algorithm implemented in Python (Programming)

- The Java ThreadLocal (Programming)

 
         
  SSH does not require a password to log on to a Linux server
     
  Add Date : 2018-11-21      
         
         
         
  Using the ssky-keygen and ssh-copy-id examples below, you can log in to a remote Linux host without entering a password in three easy steps.
Ssh-keygen Creates a public key and a key.
Ssh-copy-id Copies the local host's public key to the remote host's authorized_keys file.
Ssh-copy-id also sets the appropriate permissions for the remote host's home directory (home) and ~ / .ssh, and ~ / .ssh / authorized_keys.

Step 1: Use ssh-key-gen to create public keys and keys on the local host

Linuxidc @ local-host $ ssh-keygen -t rsa
Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key]
Enter passphrase (empty for no passphrase): [Press enter key]
Enter same passphrase again: [Pess enter key]
Your identification has been saved in /home/jsmith/.ssh/id_rsa.
Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub.
The key fingerprint is: 33: b3: fe: af: 95: 95: 18: 11: 31: d5: de: 96: 2f: f2: 35: f9
Linuxidc @ local-host

Step 2: Use ssh-copy-id to copy the public key to the remote host

Linuxidc @ local-host $ ssh-copy-id -i ~ / .ssh / id_rsa.pub root@192.168.0.3
Linuxidc @ remote-host's password:
Now try logging into the machine, with -ssh? Remote-host', and check in:
.ssh / authorized_keys to make sure we have not added extra keys that you were not expecting.

[Note: ssh-copy-id appends the key to the remote host's .ssh / authorized_key.]

Linuxidc @ local-host $ ssh remote-host
Last login: Sun Nov 16 17:22:33 2008 from 192.168.1.2
Linuxidc @ remote-host $

[Note: You are now logged on to the remote host]
     
         
         
         
  More:      
 
- Setting Wetty do not need an account login command line operations (Linux)
- Linux directory configuration (Linux)
- Shell Programming points to note about the function (Programming)
- The wrong in Linux: too many open files (Linux)
- Atlassian Linux Shell Scripting the confluence remote backup methods (Linux)
- CentOS7 boot systemd introduction and use of management (Linux)
- Linux system security reinforcement system by masquerading method (Linux)
- How to protect the Apache website under Linux system (Linux)
- swap space is insufficient cause OOM kill MySQL Case (Database)
- Linux IO redirection (Linux)
- lack of SWAP space during installation of Oracle (Database)
- Linux Network Programming - libnet Guide (Programming)
- CentOS 7 virt-manager can not connect a local hypervisor (Linux)
- Linux file permissions chmod chown (Linux)
- How do I cancel (almost) any operations in Git, (Linux)
- Configuration based on open source Lucene Java development environment (Server)
- SSH without password Definitive Guide (Linux)
- Linux System Getting Started Learning: The Linux logrotate (Linux)
- To install JDK1.7 and compiler Hadoop-2.7.1 under CentOS7 (Server)
- Talk about the Linux ABI compatibility Application (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.