IPhone ssh into my own Linux _How to configure IP

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sail456852

IPhone ssh into my own Linux _How to configure IP

Post by sail456852 »

I've been searching on this for a while but found none
I downloaded SSH client app (Serverauditor) on my IPHONE,don't know how to use it connect to my Linux pc using my Router's external IP
I succeeded in sshing into my Linux pc on LAN e.g :(my Linux pc internal IP is 192.168.0.2 ,type command username@192.168.0.2 ,and done)
Now here comes problem:
If I know my router's external IP is 183.69.34.21, and my Linux server with internal IP 192.168.0.2 ,How do I describe my IP in this format :username@IP address?
maybe like this:username@192.168.0.2@186.65.34.21? Just imagining...
So can I anyone here help me out ? newbie to Linux
Here are some attachments may help you to understand what I mean
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: IPhone ssh into my own Linux _How to configure IP

Post by JeremyB »

You will likely have to set up port forwarding on your router to route incoming traffic on port 22 to internal IP192.168.0.2 and you would use ssh username@183.69.34.21

Once you think you have port forwarding settings correct, you can check http://www.canyouseeme.org/
Locked

Return to “Networking”