Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm new to Linux but I'm messing around with my Ubuntu installations trying to figure out cool things that I can do with them. I'm running two virtual machines of Ubuntu on the same network. I'd like to be able to send commands from one machine to the other machine. There's a couple of things that I'd like to know how to do.
Firstly, how can I see what ports are open on one of the machines from the other one? I can open up a port on one machine, how can I see that that port is open from another machine? I know there are commands like telnet,netcat, that I've read about but they all seem to do a whole lot of things that I don't really understand.
Secondly, if I want to send a command from one machine to another, I assume I need to have a terminal/shell that connects to a terminal/shell on the other machine. If I want to send a command from A to B, and I open a port on B, can I link that port on B to a terminal/shell? How on machine A then do I talk to that shell?
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Firstly, how can I see what ports are open on one of the machines from the other one?
On your Ubuntu ( linux ) machine install Nmap. It will scan ports. I tried it on winblows XP without a firewall running. A "quick scan" scanned 1000 ports, 4 were open. It tells you the open port number, and the well know use of that port.
Secondly, if I want to send a command from one machine to another, I assume I need to have a terminal/shell that connects to a terminal/shell on the other machine.
You can use ssh to connect to a remote machine and issue commands. Openssh and Putty are both available for windows. With Open SSH you should be able to set up keys, and connect securely without passwords.
I ran some sample server code on one of my VM's to make an http server, then sent a request from my other VM, intended to overflow a buffer and bind a port to a shell. I can verify that the port was bound to the shell on my server VM but as soon as I try and connect to that port, the port closes. Does Ubuntu maybe have anything built in that would cause this? I'm not familiar with Linux networking so maybe there's something that closes the por tautomatically