Installing SSH public key for extra security on your Linux server

Log into SSH

mkdir $HOME/.ssh
chmod -R og= $HOME/.ssh
cd .ssh
nano authorized_keys2

Add your key you created with PuttyGen , make absolutly sure you r key is in one line ONLY , otherwise it wont work!

Adjust your  sshd_config

nano /etc/ssh/sshd_config

to


RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys2

Facebook Comments

More Stuff

How to Redirect HTTP to HTTPS on Apache HTTP (Hyper Text Transfer Protocol) is a popular as well as the fundamental protocol for data communication on the World Wide Web (WWW); typically bet...
Deal: Master Ubuntu Linux with This ‘Go from Beginner to Power Use... Ubuntu Linux is by far the most popular Linux distribution today, there are several reasons for this, however, the high-level of convenience it offers...
Ballerina reinvents cloud-native programming Cloud-native programming inherently involves working with remote endpoints: microservices, serverless, APIs, WebSockets, software-as-a-service (SaaS) ...
Free: Master Android Coding With This No-Cost Bundle TecMint deals continues to grow and we have been providing some awesome cheap offers for all of our readers. When we originally opened TecMint deals w...
Spread the love

Posted by News Monkey