![]() Read up the linked article for more ways to accomplish this. If your client is running OpenSSH v7.3 or later, there is a simple command line option for this, -J: ssh -J (assuming the IP of the server is 192.168.1.2 in the network behind the router, and myrouter resolves to the public IP of the router, and there's an account for the connecting user in both devices) ssh 192.168.1.2 -J myrouter The reasons for picking an external port on router other than 22 are not vendor specific, however: one is you may not want to disable SSH access to the router itself (which may or may not apply in your case), another is that port 22 is obviously a well known servce port that is a very common target for security attacks, and you may not want to expose your computer to those.Ī more secure alternative to manually configuring your router to permanently expose the SSH port of your server to the Internet, would be using your the SSH server on your router to forward the SSH connection to your server. This is highly vendor specific, so, given you have control over the router, you should check its documentation on how to configure it for this. In order to connect to the Linux VPS server from your iOS device, first of all you will need to set up the server and install SSH server. ![]() If your server device (your computer in this case) does not have a public IP address, the simplest solution would probably be setting up the router that provides the network for your server to forward the port 22 of your server to a port (preferably other than 22) on its public interface. Accessing your Linux server SSH using an iOS device. That is how the protocol works, regardless of any hardware vendors, operating systems or network providers, and there is no way around this. If the client belongs to a private network, the server must have an address in that network if the client belongs to the global network, your server must be exposed via a public IP address in order to be accessible. The Secure Shell protocol requires both endpoints to have an IP address in the same network.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |