[Netkit.users] RE: Netkit.users Digest, Vol 25, Issue 2

Massimo Rimondini rimondin at dia.uniroma3.it
Wed Jul 16 18:50:55 CEST 2008

Dear Lalit,

the steps to connect two virtual machines vm1 and vm2 using ssh are as
1) Prepare your Netkit lab and configure the network topology in such a way
that vm1 can reach vm2 and vice versa. You can do it by simply placing vm1
and vm2 on the same collision domain and by assigning them IP addresses on
the same subnet.
2) Place the following line at the end of vm1.startup:
/etc/init.d/ssh start
3) Enter the lab directory and start a third, independent, virtual machine
(say vm3), using the option '-l $PWD'.
4) Inside vm3, type 'passwd' and enter a new password for the root account.
5) Inside vm3, type the following commands:
mkdir -p /hostlab/vm1/etc
cp /etc/shadow /hostlab/vm1/etc
6) Crash virtual machine vm3. You will not need it in the following.
7) Start your lab normally. At this point, you should be able to ssh from
vm2 to vm1.

Apply the same steps with swapped vms in order to get connectivity the other

Steps 3 through 6 are only required once to set a password for the root
account. If you want to be able to connect without a password, you can
either enable the 'PermitEmptyPasswords' option inside the
/etc/ssh/sshd_config of the virtual machine hosting the ssh server (note
that you may need to add a line 'ssh' inside /etc/securetty of the same
machine to get things to work), or you can set up a public key.

Concerning your very first question (reaching a vm from the host without
using taps), I'm afraid I cannot help you. An alternative would be to use
serial lines, but they are unpractical to manage and use. Indeed, very
little can be done without a network interface or a direct access to the vm


> -----Original Message-----
> From: netkit.users-bounces a list.dia.uniroma3.it [mailto:netkit.users-
> bounces a list.dia.uniroma3.it] On Behalf Of Digari Lalit
> Sent: Thursday, July 03, 2008 12:16 PM
> To: netkit.users a did.dia.uniroma3.it
> Subject: [Netkit.users] RE: Netkit.users Digest, Vol 25, Issue 2
> Hi Charles,
>  can you please tell me the step for using ssh for connecting first vm to
> second vm.
> Regards
> lalit
> -----Original Message-----
> From: netkit.users-bounces a did.dia.uniroma3.it on behalf of netkit.users-
> request a did.dia.uniroma3.it
> Sent: Thu 7/3/2008 3:30 PM
> To: netkit.users a did.dia.uniroma3.it
> Subject: Netkit.users Digest, Vol 25, Issue 2
> Send Netkit.users mailing list submissions to
> 	netkit.users a list.dia.uniroma3.it
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
> or, via email, send a message with subject or body 'help' to
> 	netkit.users-request a list.dia.uniroma3.it
> You can reach the person managing the list at
> 	netkit.users-owner a list.dia.uniroma3.it
> When replying, please edit your Subject line so it is more specific than
> "Re: Contents of Netkit.users digest..."
> Today's Topics:
>    1. telnet application by netkit (Digari Lalit)
>    2. Re: telnet application by netkit (charles a thewybles.com)
> ----------------------------------------------------------------------
> Message: 1
> Date: Wed, 2 Jul 2008 16:03:02 +0530
> From: "Digari Lalit" <Lalit.Digari a freescale.com>
> Subject: [Netkit.users] telnet application by netkit
> To: <netkit.users a did.dia.uniroma3.it>
> Message-ID:
> 	<E90F3AD29562244293E7482A69A2DB730247671E a zin33exm20.fsl.freescale.n
> et>
> Content-Type: text/plain; charset="iso-8859-1"
> Hello All,
> i want to connect two vm m/c created by vstart....by telnet is there any
> specfic way to connect by telent can yanyone provide the steps for that.
> Regards
> Lalit
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/ms-tnef
> Size: 2541 bytes
> Desc: not available
> Url :
> 5f48a/attachment-0001.bin
> ------------------------------
> Message: 2
> Date: Wed, 2 Jul 2008 13:20:03 +0000
> From: charles a thewybles.com
> Subject: Re: [Netkit.users] telnet application by netkit
> To: "Users of the Netkit Network Emulation System"
> 	<netkit.users a list.dia.uniroma3.it>
> Message-ID:
> 	<1652522122-1215004847-cardhu_decombobulator_blackberry.rim.net-
> 184140787- a bxe135.bisx.prod.on.blackberry>
> Content-Type: text/plain
> You should use SSH.
> Charles Wyble
> Sent via BlackBerry from T-Mobile
> ------------------------------
> _______________________________________________
> Netkit.users mailing list
> Netkit.users a list.dia.uniroma3.it
> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
> End of Netkit.users Digest, Vol 25, Issue 2
> *******************************************

More information about the Netkit.users mailing list