Security

Sophos UTM setup public key authentication for root

Sophos UTM setup public key authentication for root

A quick how to post on how to setup public key authentication for root in Sophos UTM 9.x. ย If you want to enable root to have SSH access inside of Sophos UTM, you are required to setup public key authentication keys as there is no option otherwise. ย The dropdown specifiesย Root access but only with SSH key.

sophospubkeyauth01

The GUI interface here in Sophos is not very intuitive however, you get a box that is calledย Authorized Keys for root with a green + sign to add a value. ย But what do you add here? ย Is this a path to your public key or the key itself? ย Actually, it is the public key itself that you need to copy and past here. ย How do we get the public key to paste inside of the box? ย We can use theย puttygen utility to generate a public and private key for using to authentication with our Sophos UTM.

Using Puttygen

The puttygen application is pretty self explanatory, however, just a quick run down of the basics here. ย When you launch puttygen, you are confronted with only a couple of options. ย What we want to do isย Generate a new key pair for using to authenticate in Sophos.

sophospubkeyauth03

The most annoying part of puttygen is that you have to move your mouse around to generate some random movement for it to generate the key pair. ย Be sure to assign a password to your private key. ย Before you exit out of puttygen, copy and paste theย public key into the box inside of Sophos for the Authorized Keys for root configuration.

sophospubkeyauth04

After you have generated your keys, pasted the public key inside of Sophos and allowed root SSH access, you need to setup a putty session that uses the SSH keyfile for authentication. ย You will find that configuration below in your putty session >> SSH >> Auth >>ย Private key file for authentication.

sophospubkeyauth05

For more tips on setting up public factor authentication along with Duo, check outย Secure SSH with Public Key Authentication and Two Factor with Duo.

 

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.