This content provides a guide on how to access and use "Claude code" (likely referring to a coding assistant or environment) from any mobile device, enabling coding and hacking from anywhere by setting up a persistent, secure remote terminal.
Mind Map
Click to expand
Click to explore the full interactive mind map • Zoom, pan, and navigate
Claude code has been blowing up.
There are actually articles about Claude Code Addiction. I believe it.
I've got it. Do you have it? And I'm not here to help you quit.
I'm here to make it worse because what if you didn't have to be changed to your
laptop or desktop?
What if you could use Claude code at the airport on the couch, in the shower,
on the toilet? I want to give you that freedom. So by the end of this video,
you're going to be coding,
you're going to be hacking from your phone with CLO code from literally
anywhere. And it's going to be stupid. Get your coffee ready, let's go.
But here's the thing. CLO code is a terminal app. That's what I love about it.
And you know what? Device doesn't have a terminal. Our phones most of us,
so we can't use cloud code on our phones.
But what if using our phones we could remote into a terminal running cloud code?
That's what we're going to do in this video. Okay, here's our mission.
We have actually two goals in our mission. Number one,
get a terminal on our phone. And number two,
set up a remote terminal that will never, ever go down.
So we can always access cloud code wherever all the time.
We'll call it our forever terminal. For this tutorial,
we're going to set up a VPs and the cloud. We'll knock this one out first.
And the best place to set up your Forever terminal is host your we'll.
Go out to hosting your.com/network. Chuck,
they're the sponsor of this video and the sponsor of my channel for a long time.
They're here to help us with our cloud code addiction.
They're even giving you a sale right now.
Now is the best time to get your forever terminal. Now,
what's cool about hosting is they have cloud code ready to go.
They know why you're here.
So we'll go to services VPS hosting right here in the middle. Choose our plan.
I recommend the KVM two. It's an entire home lab in the cloud,
and you can build whatever you want with cloud code on this thing.
You can run your services on this thing. Hack from this thing,
whatever you want to do. And do you have a coupon code? Of course you do.
It's network. Chuck, watch what happens.
Magic and then watch this for our operating system. We'll just search for cloud.
There it is. Cloud code. Yeah, I want it.
And after you set your password and enable your free malware scanner and take a
quick coffee break, network junk coffee.
Actually now's a great time to hack that YouTube algorithm.
Have you done that yet? Hit the like button. Subscribe.
Notification bell comment. You got to hack YouTube today. Ethically, of course.
Hey look, it's done.
And from here you can access the terminal just from clicking on this button,
the top right, and you're here typing Claude pre-installed.
Make sure you log in.
And now all we have to do is use our phone to access this terminal. But hold up,
what are you doing? Is this thing even secure?
This is accessible to the entire world. We got to make sure you protect it.
We got to harden this Linux machine. Okay? To make this sucker secure,
we're going to do three things. First, we'll enable fail to ban.
This will block brute force attacks automatically.
We'll do pseudo A PT install fail two ban dash y.
We'll make sure it's running system CTL status fail to ban and it's
running. Number two,
we're going to enable our firewall and only allow the ports we need.
We'll do a combo command. Pseudo UFW allow 22,
which is the port we use for SSH. And it's how we remotely access this terminal.
And then we'll do and pseudo UFW enable. Now, if you're running as route,
you don't need pseudo, just a force to have it anyways. Let's do it. Yes,
UFW status looks great. Number three,
we're going to remove password authentication,
but not right now because the app we're going to use to remote into this
terminal will handle that for us. So here we go. We've almost broke the chain,
but now it's time for the terminal app. Yes,
there is an app for your phone that can give you terminal access.
It's called Terminus. I'm not sponsored by them. I'm sponsored by hosting here.
VPS down below. It's just an amazing terminal. So I'll go to the app store,
find Terminus. There it is. And by the way,
you can use this to remote into any of your stuff. It's awesome.
We'll open it up. Ooh, shiny. You don't need an account.
So I'm going to continue without one.
You don't need to give it access to your local network because we'll be
accessing a public VPS yours and now create our first host,
which is going to be our hoster VPS. Now, back in hosting your land,
if you look at the overview of your VPS, you can use one of two things.
Either the DNS name or the public IP address. Let's go with the DNS name.
Mine is SRV, blah, blah, blah. Hit continue. Label it.
We'll call it cloud code. And then scroll down to credentials.
But in your username, which will be root,
and then the password you set when you set up your VPS. And that's it.
Hit the check mark, hit continue to accept the unknown host.
And we're in the terminal. Let's see if it works. Claude. And we're n.
That's just fun. Now that's all you have to do. Video over. I mean, not yet.
Hold on, hold on.
But you can back out and that's going to be there forever whenever you need it.
But there are a few things we can do to make it better.
But first we got to harden this thing. There's that third thing we forgot to do.
We didn't forget. We're going to do it right now. Remove password off.
We're only going to do SSH key authentication.
So we're going to back out of our host and get back to the main area by hitting
that arrow at the top left. And we're going to click on key chain.
And we're going to add a new credential. Hit the plus icon at the top right,
and we'll click on generate key. Let's call it my key.
And hit the check mark to say, done. Then watch this. This is the magic.
We're going to hold down our thumb on that or finger, I don't care.
Click on share. And then say, export to host,
which host Claw code Export.
That just added the key we made to the VPS. So now we no longer need a password.
We got the key. Let's test it by getting back to our host.
Let's hold down the host and click on edit and let's remove our password
and save that. And now let's see if we can connect. We're in,
I feel pretty safe now about removing password authentication.
We can do it with one command.
All this is doing is changing your SSH configuration in two files.
This one and this one, which is an override by hosting your,
which will take precedent. We're going to do both files just to be safe. Oh,
and then we're also restarting. SSH. Ready, set go. So this should in theory,
deny password authentication. Let's try it. Yep.
Public key denied. But if we get back to our phone and try to log in,
we're in Now, this is amazing, but we still have one problem.
What happens when I don't know,
your phone locks or you lose signal or your plane's taking off?
What happens to that cloud code session?
You're in the one you're programming in,
because right now it's just going to disappear. There's a way to fix that.
It's called tux.
I talked about team UX before.
It's a terminal multiplexer and allows you to keep persistent sessions.
Let's install on our server real quick. Actually, we'll do it from our phone.
Duh. We'll do a PT install tux.
It's probably already installed. Yeah, it's now watch this.
Here's the magic here on my hosting your VPS.
I'll type in UX and that suddenly launched a session and I can launch Claude
and say Hello. Tell me a story. And then back here on my phone,
lemme just kill my connection. I'll go to connections, kill it. Ah,
I plane took off, whatever. I'm going to get back in there fresh session.
But I can type in Team M and we can do a, to resume the last session,
attach ourselves to the most recent session. Look at that. That's kind of weird.
It's like I'm typing. Look at that. It's typing in both terminals.
And then control B, D to detach. Now there's one. Got you with this.
And notice what I'm doing here. I'm trying to scroll up or down,
whatever you want to say to look at more stuff in my terminal,
which will happen.
And I can't because tux doesn't work well with Terminus out of the box unless we
make one config change.
I'm going to close this session here on my phone and we're going to add this one
line of config. Just copy and paste this.
It's a quality of life feature for the mouse,
and we're adding this to our UX config file and enter, ready to go.
I'll start a new session, call it plane, launch it,
tell it to do something, and then on my phone, I'll get logged in.
Then I'll do tux a dash t to specify my session,
which was plain cool. Now let's see if we can scroll up.
There it goes. And sure, let's create that scanner.
How cool is that?
Now you can code and hack from anywhere and with hosting your As your VPS,
you can do a bunch of things like build a website with Claude and it runs the
website and it builds it right there on the stinking host.
What you can do is now endless and you can do it from anywhere.
That's the video. I'll catch you guys next time. Hey,
you're still here at the end of my videos. I do like to pray for you,
my audience. Why?
Because I love you guys and I want you to have the best life possible.
So let's go ahead and pray. God,
ask your name that you bless the person on the other side of the screen,
that you would fill their life with joy right now with excitement,
and that they would actually not have an addiction to Clogg code.
That they would be able to put their phones and their laptops down to spend time
with their family or get time alone.
But also to empower them to be able to do some amazing things.
Inspire them, bless their lives and their careers.
Let this year be amazing for them. Bless their families.
Guide them right now in their career.
If they're unsure about what they're doing, if they're confused,
give them clarity. Give them excitement right now. Give them ideas
and let them, if they're anxious,
or just dealing with any kind of depression around just starting this year,
God, ask your name as they're sitting here listening to this,
that it will just melt away. I ask this in your name, Jesus.
Amen. Alright guys, I catch you next time.
Click on any text or timestamp to jump to that moment in the video
Share:
Most transcripts ready in under 5 seconds
One-Click Copy125+ LanguagesSearch ContentJump to Timestamps
Paste YouTube URL
Enter any YouTube video link to get the full transcript
Transcript Extraction Form
Most transcripts ready in under 5 seconds
Get Our Chrome Extension
Get transcripts instantly without leaving YouTube. Install our Chrome extension for one-click access to any video's transcript directly on the watch page.