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