and call it as needed.
========================================================== ====================================
Possible problems:
1. Server refused our keyThe public key does not match the private key, or the authorized_keys file does not exist.
Solution: Use puttygen.exe to Generate Keys in ssh2 format diffe
When putty uses the public key for authentication, the following error occurs: disconnected: No supported authentication methods available (server sent: Public Key ).
For example:
After searching for half a day, I couldn't find out what the problem was. sshd settings were all normal. This can be an error even if it
In the previous article to ensure that Linux VPS and server more secure Xshell set key login article has been shared to Xshell use the key to login to our VPS server to ensure the safety of the machine, but many students are not like the old left with Xshell, There are still a lot of use
Directory:
I. Title: PuTTY using a key to log on to the server
II. Introduction
Iii. Content
3.1 start using PuTTYgen to create the key and obtain the public key string and private key file.
3.2 copy the public
When you remotely log on to Ubuntu with putty, the network error: Connection refused solution is displayed.
On Ubuntu, choose system> preference> Remote Desktop> allow others to view your desktop.
Enable the SSH service on Ubuntu:
Zhang @ Zhang-desktop :~ $ Sudo apt-Get install OpenSSH-Server[Sudo] password for Zhang:
After xming is installed in windows,
Tags: virtual machine server term PNG Putty mes ons zip windowDownload puttyAddress: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.htmlSelect Putty.zip 32-bit downloadAfter installation, add the IP that you want to remoteSaved sessions here fill in your virtual machine name (optional)Set some propertiesWindow:Lines of Scrollback: number of rows tumbli
When Windows manages Linux servers, it is common to use putty to login to SSH for remote administration. The default login authentication method for password authentication, although this method is simple, but each login to enter a long string of passwords, quite troublesome. Also, if the root is allowed to be logged on, it could be brute force, leading to serious consequences.Therefore, it is usually recommended to use
the Import private key, click Open650) this.width=650; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M01/5B/31/wKioL1UBqNWBDqaiAAIjYERasM4298.jpg "alt=" Wkiol1ubqnwbdqaiaaijyerasm4298.jpg "/>After the call, you can now log in with your key password.650) this.width=650; "title=" 14.png "src=" http://s3.51cto.com/wyfs02/M00/5B/37/wKiom1UBqOHxCu7FAAEvDw53hcg474.jpg "alt=" Wkiom1ubqohxcu7faaevdw53hcg474.jp
-wh_500x0-wm_3-wmp_4-s_2091161860.png "/>3, in the Linux server as follows[Email protected] ~]# mkdir/root/.ssh #创建目录[Email protected] ~]# chmod 700/root/.ssh #更改权限[Email protected] ~]# Vi/root/.ssh/authorized_keys #编辑公钥文本文件Then, in the copy public key to the text editor, press ESC to enter: Wq Save Enter to exit650) this.width=650; "title=" 9.png "alt=" wkiom1nnqbaxj8draabdhscgalo687.png-wh_50 "src=" https
/wyfs02/M01/5B/22/wKiom1T_4BTTH4dyAALJKlSJf4w807.jpg "title=" Qq20150311111135.jpg "alt=" Wkiom1t_4btth4dyaaljklsjf4w807.jpg "/>4. Copy the public key into the remote LinuxBack in the key generation window, a bunch of strings underneath "key" is the generated public key content, copied and pasted into the remote Linux/
When managing Linux servers in Windows, putty is often used to log on to ssh for remote management. The default login authentication method is password authentication. Although this method is simple, you must enter a long string of passwords for each login, which is quite troublesome. In addition, if the root user is allowed to log on and open it, it may be cracked, causing serious consequences. Therefore, it is recommended that you use
-wcc-caaofhdufub8107.png-wh_50 "/>7. In the blank Space under "Saved Sessions" to fill in a name about this session, this time use "Centos7lab", and then click the "Save" button to save all the personalization settings of the session (after opening the software directly select "Centos7lab", click " Load button), and then click on the "Open" button to connect to the server650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/08/CA/wKiom1nnFseR3DfuAALLVngU00k912.png-wh_500x0-wm_ 3-wmp_4-s_19
) click Save private key to Save the private key to a safe place.
4. log on with Putty
1) open the SSH entry on the left side of Putty, click Auth, and use Browse to import the saved private key file.
2) click Session on the left and enter the Host name or IP address in Hos
/wkiom1t_4btth4dyaaljklsjf4w807.jpg "title=" qq20150311111135.jpg "alt=" wKiom1T_ 4btth4dyaaljklsjf4w807.jpg "/>4. Copy the public key into the remote LinuxBack in the key generation window, a bunch of strings underneath "key" is the generated public key content, copied and pasted into the remote Linux/root/.ssh/author
, make the next login easy4) Select the session you just saved click Open Login Host5) Enter the user name and SSH password to connect the hostAttached: 1 To view whether the SSHD service is enabled for commands# NETSTAT-ANPT | grep ' sshd ' #有输出则说明已经启动2 Viewing the status of SELinux# Getenforce #禁用输出Disabled3 Configuring SSH# vi/etc/ssh/sshd_config #配置ssh版本, key digits, port number, etc.4 commands for SSH key
generated. The public key is used on the server, and the private key is saved by your own computer. Why set key passphrase?That's to prevent the private key from being stolen, connect your server, remember to save the password. 6
Using Putty for key login1: First Use Putty link on server, ensure normal login2:650) this.width=650; "Src=" Https://s2.51cto.com/wyfs02/M00/97/86/wKiom1kvdgnzLhuVAABedT3HsgY107.jpg-wh_ 500x0-wm_3-wmp_4-s_2025940128.jpg "title=" 1496282614 (1). jpg "alt=" wkiom1kvdgnzlhuvaabedt3hsgy107.jpg-wh_50 "/>3: Open Puttygen sof
save the public key, when uploading, directly from the build box copy) such as BLVMING.PPKStep two: Upload the keyLog in to the remote system with your own account, and then execute the following command:CD ~mkdir. SSHCD. SSHCat > Authorized_keysNote: To copy directly from the Puttygen.exe generated public key generation box if copied from the file. This problem is prone to:Server
Tags: completion rollback host Mode server algorithm color and so on root userOne: Putty download1: Look for two places a. Download Putty B. Chiark greenend2: Download the 32-bit zip package, which is a toolkit collection, not just a terminal toolTwo: Putty settings1.hostname: Access the server's IP, the right port dep
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.