![]() ![]() The most basic one is to configure your router to accept SSH traffic on a non-standard port and to forward it to port 22 on the machine running the SSH service. Once you’ve found the IP address, and configured your router you can log in by typing: ssh you are exposing your machine to the Internet it is a good idea to implement some security measures. In short, you need to enter the port number where requests will be made (Default SSH port is 22) and the private IP address you found earlier (using the ip a command) of the machine where the SSH is running. You should consult your router documentation about how to set up port forwarding. When it comes to setting up port forwardingĮach router has a different way to setup port forwarding. To determine the public IP address of the machine you’re trying to SSH to, simply visit the following URL: ![]() To connect to your Ubuntu machine over the Internet you will need to know your public IP Address and to configure your router to accept data on port 22 and send it to the Ubuntu machine where the SSH is running. You are now logged in to your Ubuntu machine. Once you enter the password you will be greeted with a message similar to the one below. ![]() Warning: Permanently added '192.168.121.111' (ECDSA) to the list of known password: Type yes and you’ll be prompted to enter your password. Once you’ve found the IP address, login to remote machine by running the following sshĬommand: ssh you connect through SSH for the first time, you will see a message looking something like this: The authenticity of host '192.168.121.111 (192.168.121.111)' can't be established.ĮCDSA key fingerprint is SHA256:Vybt22mVXuNuB5unE++yowF7lgA/9/2bLSiO3qmYWBY.Īre you sure you want to continue connecting (yes/no)? As you can see from the output, the system IP address is 192.168.121.111. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |