Linux - Shell - login password-free

  1. Outline
    1. Description linux ssh without password
    2. Impotent rage
      1. Recently really do not know what to write a
  2. surroundings
    1. the
      1. centos7

1. Scene

  1. Scenes
    1. Host A requires frequent access to the host B
    2. Each visit must enter a password
  2. problem
    1. Lost password every time a lot of trouble
  3. Solutions
    1. windows
      1. Find a terminal software, save login information
    2. linux
      1. Configuring ssh password free

2. ssh password free

  1. Outline
    1. About ssh password free
  2. principle
    1. ssh
      1. Login Method
        1. I do not understand this, it is slightly up
    2. Asymmetric encryption
      1. Host A
        1. Generate a public key and a private key
      2. Host B
        1. A host of public reserved

3. Configuration

1. Generate Key

  1. Outline
    1. Generate key
  2. command

    # 所有输入不管, 直接 enter
    # 默认的 key, 会在 ~/.ssh/ 下生成
    > ssh-keygen

2. Send key

  1. Outline
    1. The last step to generate the key, sent in the past
  2. command

    # 会确认一次 密码账户, 这个必须通过
    > ssh-copy-id <user>@<ip>
  3. verification
    1. After the success of direct ssh @
      1. It became a success

ps

  1. Fretful

Guess you like

Origin www.cnblogs.com/xy14/p/12078579.html