Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up SSH password-free login Linux for Win10

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "Win10 how to set SSH password-free login Linux", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "Win10 how to set SSH password-free login Linux"!

Operating on Windows

SSH installation (Win10 comes with, if not install Openssh)

Command: ssh-keygen Enter consecutively, produce id_rsa(private key),id_rsa.pub(public key) in ~\.ssh directory

Command: scp id_rsa.pub root@xxx:/root/.ssh/or manual ftp copy is also possible

Operating on Linux (root as an example)

Add public key

#: cd ~/.ssh && touch authorized_keys //create #: cat id_ras.pub >> authorized_keys without this file //Append public key, which can be multiple manual copies or can be used without the user name at the end.#: chmod 600 authorized_keys#: cd .. && chmod 700 .ssh

Modify ssh configuration

#: vim /etc/ssh/sshd_config

RSAAuthentication yesPubkeyAuthentication yesPermitRootLogin yes

#: service sshd restart

Testing on Windows

Single private key free login

ssh root@xxx.xxx.xxx.xxx

Multiple private key configurations

Modify: ~/.ssh/config

Host name HostName xxx.xxx.xxx.xxx Port 22 User root IdentityFile ~\\.ssh\\id_rsa PreferredAuthentications publickey

Simplified login: ssh name

At this point, I believe that everyone has a deeper understanding of "Win10 how to set SSH password-free login Linux", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report