Fitting Virtual Machines and Docker Images to your needs [ Part 4.1 ]
Original imagem from: https://miro.medium.com/ || Tux from community

Fitting Virtual Machines and Docker Images to your needs [ Part 4.1 ]

Hi there, there are no doubt that is very anoying use the console in the Virtual Machine and for this reason is very useful for us access the "remote" system using some ssh client like putty for example when we are using Windows operating system. And also is very common we face the message Permisson Denied or Remote host unreachable in this article we will solve this issue which is very common in a major of cases when using some downloaded appliance/image.

To solve this again I did some effort to make the tasks simple and easy to be acomplished. Sleave by sleave even our gramma can to that ??

So.... let me stop write text and start some fixes, It's show time!!!!!

Again:

  • I am considering that you already have your VM or Docker installed and running and also that you are already logged;
  • I am also suposing that you know how to make a remote connection (If you don't know send me a message);

Check/Install the Net-Tools package

First of all we need to try connect to remote system, if the connection doesn't were established we need to act on this issue. Instead of navigate to default install directory to double check if the net-tools resource is installled, we will execute a single command ifconfig and according to operating system response command not found we will run the command to install (by the way this resource also in a major of cases are not installed). Before install the package we need to read the content of repositories declared in the list (sources.list) or lists of address to install new Linux resources and also to update the operating system.

Very, Veryyyy Important: You should be careful on use the commands listed below to avoid the risk of crash all your environment:

  • apt upgrade <package-name>;
  • apt-get upgrade <package-name>;
  • apt-get full-upgrade <package-name>;

Instead I suggest you to use aptitude safe-upgrade;

Step 1: Try the ssh connection, check the net-tools and install it

Step 2: Now we will check the ssh server service status and try connect using ssh service on default port 22


Until this point we have evolved good part to get done the ssh connection with our Virtual Machine or Docker image. In next video we will verify the configuration file for sshd.service and get the done the communication between the remote system to any client in your local network.

Please, if you have a few minutes and thought it is easy and simple as intended write your comments or just thumbs it up!

Thanks and stay tunned to next article!

要查看或添加评论,请登录

Sandro Regis Cardoso的更多文章

社区洞察

其他会员也浏览了