Setting up SSH Access on Shared cPanel Hosting like Bluehost
Articles,  Blog

Setting up SSH Access on Shared cPanel Hosting like Bluehost

– [Instructor] Hey, what’s up everybody? In this video, I’m gonna walk you through enabling shared key
authentication at Bluehost. Now, this tutorial’s
specifically for Bluehost but this would work on any
shared cpanel hosting service. So, the first thing we’re going to do is we’re going to enable
SSH access on our account. Now, you’re gonna go to, after you log in your Bluehost account, you’re gonna go to cpanel here and that will bring it up, your cpanel, believe it or not. And you are going to head
down to the security section. Now, the security section is
right here near the bottom and you see this icon SSH shell access so we’re going to open that up, and it will open this other screen. And there’s two key steps here. The first thing we’re gonna need to do is we’re going to need to
turn on our SSH access, basically enable it on the account and the second thing is, we need to add our keys to that account. So the first thing we’re gonna
do is manage it, SSH access and you can see right here, right now, it says no shell access,
so I’m gonna turn that on, real shell is fine, that’s the only option but it works great. Click submit. Alright, so we’ve got
success message here, it’s been turned on successfully. Now we’re gonna go back and add our keys. So we’re gonna go to manage SSH keys. Now, if you’re not familiar with how shared key authentication work or what SSH keys are, you are linked to a separate video that explains that really well. For now, what we’re gonna
do is we are going to go to our computer that I’ve got set up here, and we’re going to open terminal and this is where we’re
going to find our shared key. There are a couple of different
ways you can launch terminal the quickest is just to launch Spotlight and type terminal and that
will open up a prompt. Now, what we wanna do is we
want to find our shared key. The default path for that and what it’s gonna be for
most users is the SSH directory that I just navigated to there. You can see I have two files here, I have the IDRsave file, I
have the file. We never wanna share
the, sorry, the IDRsave file, that’s our public, that’s our, excuse me,
that’s our private key. We wanna keep that a
secret, but our public key is that key that we’re going to import into the Bluehost cpanel. So to find the contents of the pub key, we’re just going to cat I must have a typo there, I do. Cat and you can see it outputs this big string of characters and all we’re gonna do is copy that. We’re going to go back to Bluehost and we’re going to choose
to import that key. Now, you can put a name here, it’s not required. The only reason you would use a name here is if you’re having a whole
bunch of different keys and you wanted to have unique
labels for each of them. So we’ll call this one wpsitecare-test and we’re gonna put this public key into the public key text box and we’re going to click import. And we’ve successfully imported the key, now there’s one more thing we need to do before we’re gonna be able to connect. We need to go to manage authorizations. You can see right now it
says status not authorized. Let me go to manage authorizations, click authorize, and it says that the
wpsitecare-test pub key has been authorized. Now we just need to test it, so we’re back to our computer here. So now all we have to
do is find our username. It’s right here on the
SSH screen wpsitecone. So we’re gonna go back to that. So now that we’re in terminal, we’re going to try SSH into Bluehost. So I’m gonna do SSH flag p, this is setting the port,
this isn’t necessary, you don’t have to do the slash p 22 but we’ll try it, old habits die hard. And then wpsitecone is our
username at our domain name. And that should give us … So it says, sure you
wanna continue connecting? We’re gonna say yes. And it says attempting
to create directory, there’s a directory there and you can see that we have a prompt on our server now. So if I do an LS, this is all of the files that are on the server itself. I can … navigate around the server
and see the different things that are there and we are authenticated without any kind, any type of password. The shared key authentication works. So that is our tutorial for the day, this is adding SSH keys
to, really any cpanel host, any cpanel shared hosting environment and I hope it was helpful. Have a good day.

One Comment

Leave a Reply

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