当前位置:网站首页>[SSH] login without password

[SSH] login without password

2022-06-28 22:24:00 zhy29563

1. Environmental Science

  • The server :Ubuntu 18.04
  • client :Windows 10

2. Server side

because Ubuntu Default with SSH, Therefore, there is no need for too many configurations . For the mode, the server has no ~/.ssh Folder , perform ssh localhost command .

3. client

  • install SSH
    It is recommended to use git for windows
  • Configure password free login
    • open git bash
    • Generate key pair ssh-keygen -t rsa
    • Copy to server ssh-copy-id [email protected]
    • If the prompt file already exists , Then use the following operation
      • Log on to the remote server ssh [email protected]
      • open authorized_keys file vim ~/.ssh/authorized_keys
      • Toggle edit mode i
      • Switch to the end of the file , Press End key
      • Press enter to wrap
      • Open generated id_rsa.pub file , And copy the contents
      • Paste the vim Editorial office , And press Esc Return to command mode
      • Input :wq, Save and launch
  • validate logon
原网站

版权声明
本文为[zhy29563]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/179/202206282149583009.html