Key Logon Settings in Linux

Source: Internet
Author: User

Key Logon Settings in Linux

Procedure for logging on to Linux with a key (using putty ):

1. Use putty to remotely log on to the Linux server, use puttygen to generate a key, save the generated key, and save the private key to copy and save the public key to the authorized_keys file on the Linux server.

2. Create a file:

Vi/root/. ssh/authorized_keys // create the file authorized_keys

Chmod 600/root/. ssh/authized_keys // Add Permissions

Chmod 700/root/. ssh // Add Permissions

3. Clear firewall settings:

Iptables-F // clear settings

Service iptables save // save settings

4. Disable seLinux.

Seteforce 0 // temporarily shut down and restart, and then the system becomes invalid

Vi/etc/seLinux/config // change seLinux = enforcing to seLinux = disabled // always disable

5. Edit the ssh configuration file:

Vi/etc/ssh/sshd_config // edit the ssh configuration file
PasswordAuthentication no // password-based login prohibited
PubkeyAuthentication yes // allow key-Based Access
6. Restart ssh

#/Etc/init. d/sshd reload

Service sshd restart

7. After the configuration is complete, only users with the key can log on to the Linux system.

PuTTY + Xming for Oracle image Installation

Some simple and practical modifications to the original settings when using PuTTY

How to Use PuTTY to implement remote logon control on Linux platform

How to connect PuTTY to Ubuntu in VMWare

VMware + Linux + PuTTY environment Configuration

Use PuTTY key authentication mechanism to remotely log on to Linux

This article permanently updates the link address:

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.