SSH Public Key Private key

Source: Internet
Author: User

SSH configuration file
Vi/etc/ssh/sshd_config

Putty Download
Http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Public key encryption, private key decryption

Open Puttygen Click genenrate Generate Public key
Set the password
Save private key to PC by clicking on Save private key

Save the public key to
Mkdir/root/.ssh
CD. ssh/
Vim Authorized_keys

Ssh-rsa aaaab3nzac1yc2eaaaabjqaaaqeaj/bc0eyjqea1/zse4xw3b18qpbmiicsydtjdoxvrl1+aobtwvbnegpcdpm+zus1uqwczotg+ vupvkux1slqkwk/rfdazvmtlg6umozmb6kllli4mhhgbfh1xs+nutx6s7nidlkvohw37t/ aigxf7i9hdslzbgsepgtafpapvahbjr2divisdkn4rd3s+b4jykix/cp5u8b0pcq3+ Ozuu6qf0zerzxjstwe1rzeorheaygsgxihuflbs1uf3ujs0mdmpxy7/dtgvqdjwfclnvkaairr6ccwfr1c/83n/yke5atvu3pfm9jnhnwdcd+j +pgym1fegjvfxsevp2cgshzq== rsa-key-20150623

chmod 600/root/.ssh/
chmod 700/root/.ssh/authorized_keys


Iptables-f clear These Rules
Service Iptables Save

Getenforce viewing the status of SELinux

Vi/etc/selinux/config go in and change his profile to permanently set his state.

Setenforce 0 temporary entry into force

Finally open putty load private key come in Ssh->auth

SSH configuration file
Vi/etc/ssh/sshd_config plus the following line prohibits key login
Permitrootlogin Without-password


Do not log on as a remote root user
[Email protected] ~]# Vi/etc/ssh/sshd_config
#LoginGraceTime 2m
Permitrootlogin no modify here
#StrictModes Yes
[[Email protected] ~]# service sshd restart =/etc/init.d/sshd restart

SSH Public Key Private key

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.