In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to install WinSSHD to achieve windows under the SSH protocol and configure trust Linux client, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
The Windows system that participated in this test is Windows Server 2008 R2 Enterprise,Linux system is suse12 sp1.
1. Download the installation package of WinSSHD software, and the version I tested is WinSSHD5. (there are many ways to download. Search for "WinSSHD5" on Baidu, and the tool is also called "Bitvise SSH Server".)
two。 Run the installation exe file and follow the steps to install.
Check "I agree." You can customize the installation path and click the Install button
Select "Personal edition" and click the OK button.
[note: "Standard edition" needs to be purchased, otherwise it will expire in 30 days. If there are no requirements such as more connections, you can use "Personal edition". Except for those that need to buy a standard version! ]
Enter the name information and click the OK button
Click the OK button.
Click "Open easy setting" to open the configuration page
Select "Open port (s) to any computer" and click the Next button
Remove the check box in the picture and do not use the windows account to log in. Then click the "3.Virtual accounts" tab.
Click the add button to create a virtual account
Enter the user name first, then check it to set the password
When you have finished setting the password, click the OK button.
Click the "Save changes" button to return to the main panel.
Click the Start Server button on the main panel.
If you need to shut down the ssh service, you can click the "Stop Server" button.
Then execute cmd to enter the command line input box, execute the "netstat-ano | findstr 22" command to see if port 22 (ssh) is open.
It is clear that port 22 (SSH) is open.
3. Log in to the Linux system, execute the scp command to copy the file to the winserver server, and view the results.
Test@CHAPP:~ > echo "hello world" > > a.txt
Test@CHAPP:~ > cat a.txt
Hello world
Test@CHAPP:~ > scp a.txt sshuser@182.207.3.210:/C:/key
The authenticity of host '182.207.3.210 (182.207.3.210)' can't be established.
DSA key fingerprint is 71:b2:88:c7:f7:cd:b9:ec:31:2e:13:54:6b:76:0f:8c [MD5].
Are you sure you want to continue connecting (yes/no)? Yes
Warning: Permanently added '182.207.3.210' (DSA) to the list of known hosts.
Sshuser@182.207.3.210's password: [enter the sshuser user's password here]
A.txt 100% 12 0.0KB/s 00:00
Test@CHAPP:~ > rm a.txt
At the same time, you can also open the file on winserver to view.
4. Log in to the Linux host and execute the following command under the relevant user to generate the public key:
# ssh-keygen-t rsa (enter for three times in a row, you can generate public and private keys)
Id_rsa.pub and id_rsa will be generated in the .ssh directory under the current user HOME directory of the Linux host, where id_rsa is the key and id_rsa.pub is the public key
Test@CHAPP:~ > cd ~ / .ssh
Test@CHAPP:~/.ssh > scp id_rsa.pub sshuser@182.207.3.210:/C:/key/authorized_keys
Sshuser@182.207.3.210's password: [enter the sshuser user's password here]
Id_rsa.pub 100% 399 0.4KB/s 00:00
5. Import the public key into WinSSHD
Go to the Open easy setting- > Virtual accounts tab
Click the Edit button
Click "Public keys"
Click Import, import the public key (authorized_keys) just passed from the Linux system, and then click Close.
Click the OK button.
6. Transmit through the Linux system again to check whether the transmission is normal.
Test@CHAPP:~/.ssh > scp id_rsa.pub sshuser@182.207.3.210:/C:/key/authorized_keys
Sshuser@182.207.3.210's password:
Id_rsa.pub 100% 399 0.4KB/s 00:00
It is clear that it has been authenticated and can be transmitted without entering a password.
7. If you need to configure to trust multiple Linux clients, you can create multiple folders under windows, such as key1,key2. Used to store public key files (authorized_keys) from different Linux clients, and then import the public keys into WinSSHD in turn
At this point, install WinSSHD to implement the SSH protocol under windows and configure the trusted Linux client operation to complete!
Note that this is to use a virtual account to connect to the Windows system, or you can use a Windows account to connect to the Windows system, as long as you are allowed to log in using the windows account and configure it in the installation steps.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.