▶️YouTube
Claude Code on your phone in 10 minutes
NetworkChuck·youtube.com·9 min read·Mar 28
Select text to create a clip
Transcript — click timestamp to jump, select text to highlight
184 segmentsClaude code has been blowing up.
Like 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.
Cause 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 Claude code from literally
anywhere. And it's going to be stupid. Get your coffee ready. Let's go.
But here's the thing. Claude 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 Claude code on our phones, but what if using our phones,
we can remote into a terminal running Claude 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 Claude code wherever all the time.
We'll call it our forever terminal
for this tutorial. We're going to set up a VPS in the cloud.
We'll knock this one out first.
And the best place to set up your forever terminal is hosting here.
We'll go out to hosting your.com forward slash network. Chuck.
They are the sponsor of this video and the sponsor of my channel for a long time.
They're here to help us with our Claude 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 here is they have Claude 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 Claude 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 Claude. There it is. Claude code. Yeah.
I want it.
And after you set your password and enable your free malware scanner and take a
quick coffee break. Now we're chucked on 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 gotta 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 at the top, right?
And you're here typing Claude pre-installed,
make sure you log in and not 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 gotta make sure you protect it.
We gotta harden this Linux machine.
Okay. To make this sucker secure, we're gonna do three things.
First we'll enable fail to ban. This will block brute force attacks automatically.
We'll do pseudo apt install fail to 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 is how we remotely access this terminal.
And then we'll do and, and pseudo UFW enable. Now, if you're running as route,
you don't need pseudo just to 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 termius. I'm not sponsored by them.
I'm sponsored by hosting your VPS down below. It's just an amazing terminal.
So I'll go to the app store find termius. 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. Oh, shiny. You don't need an account.
So I'm gonna continue with that one.
You don't need to give it access to your local network because we'll be accessing a
public VPS yours. And now we'll create our first host,
which is gonna be our hostinger 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.
Clod and we're in 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 gonna be there forever whenever you need it.
But there are a few things we can do to make it better.
But first we gotta harden this thing. There's a third thing we forgot to do.
We didn't forget. We're gonna do it right now. Remove password off.
We're only gonna do SSH key authentication.
So we're gonna back out of our host and get back to the main area by hitting that
arrow at the top left.
And we're gonna click on key chain and we're gonna 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 gonna hold down our thumb on that or finger.
I don't care. Click on share and then say export to host,
which host cloud 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 her,
which will take precedent. We're gonna 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
or 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 it. Cause right now it's just gonna disappear.
There's a way to fix that. It's called T mux.
I've talked about T mux before.
It's a terminal multiplexer and it 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 APT install T mux.
It's probably already installed. Yeah, it is. Now watch this.
Here's the magic here on my hosting your VPS.
I'll type in T mux 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, let me just kill my connection.
I'll go to connections, kill it. Ah, plane took off, whatever.
I'm gonna get back in there. Fresh session, but I can type in T mux.
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 gotcha with this and notice what I'm doing here.
I'm trying to scroll up or down.
Whatever you wanna say to like look at more stuff in my terminal,
which will happen.
And I can't because T mux doesn't work well with term is out of the box.
Unless we make one config change.
I'm gonna close the session here on my phone.
We're gonna add this one line of config. Just copy and paste this.
It's the quality of life feature for the mouse.
And we're adding this to our T mux 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 T mux a dash T to specify my session, which was plane.
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, I 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 a addiction to Claude 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, give them excitement right now, give them ideas.
And let them, if they're anxious or
or just dealing with any kind of depression around just starting this year,
God, I ask your name that as they're sitting here listening to this,
that it will just melt away.
I ask this in your name, Jesus.
Amen.
All right, guys, I'll catch y'all next time.
Clips
No clips yet
Select text above to create your first clip
Loading connections...
Reflect
What's the strongest counterargument to this piece?
Press Cmd+Enter to submit