VMware Communities
stdvorak
Contributor
Contributor

How can i join via ssh from outside?

I have VMWARE workstation (today i download) on my debian. I install on vmware debian too and i dont know how can i join ssh from outside to debian in vmware.

On vmware debian show me ifconfig IP 172.16.40.128 - i can join from localhost but not from outside computer. How can i do it? Im newbie in linux and english, please easy sentences Smiley Happy

I have in my old debian /etc/network/interfaces:

auto lo

iface lo inet loopback

  1. The primary network interface

allow-hotplug eth1

auto eth1 eth1:1 eth1:2

#auto eth1

iface eth1 inet static

address 193.19.177.xxx4

netmask 255.255.255.0

gateway xxx.xxx.xxx.xxx

iface eth1:1 inet static

address 193.19.177.xxx5

netmask 255.255.255.0

gateway xxx.xxx.xxx.xxx

iface eth1:2 inet static

address 193.19.177.xxx6

netmask 255.255.255.0

gateway xxx.xxx.xxx.xxx

Im realy suprised speed install debian on vmware!!!

Thx

Reply
0 Kudos
6 Replies
MtMan
Enthusiast
Enthusiast

Stdvorak,

You can ssh to your virtual machine just like a physical machine.

From a different computer or from the host just type

ssh -l login_name 172.16.40.128

This is done outside the VMware console.

You can add your virtual machine to your hosts file so that you can ssh by name instead of by IP address.

Welcome to the VMware forums.

Reply
0 Kudos
stdvorak
Contributor
Contributor

thx for answer

can you give me link to maual "how" i must change hosts file?

I have /etc/hosts

127.0.0.1 localhost

127.0.1.1 anathe.cust.nbox.cz anathe

  1. The following lines are desirable for IPv6 capable hosts

::1 localhost ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

ff02::3 ip6-allhosts

After change i must restart linux?

After change i can still join by ssh to my old linux?

Thx

Reply
0 Kudos
AWo
Immortal
Immortal

1. Install VMware Toos inside the guest.

2. Try to ping the guest from the host you want to use ssh (must work).

3. Is sshd running? Check with "/etc/init.s/sshd status". If not, start it "/etc/init.d/sshd start"

4. Is TCP port 22 opened on the guest Linux? If not, open it.

5. Try to make a connection from the host in step 2 to the guest with a ssh client.

If you are unsure with any step or if one stap is not working, come back again.


AWo
VCP / VMware vEXPERT 2009

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
stdvorak
Contributor
Contributor

Sorry, i speak wrong english - im trying better sentence >>>

I have two different computer

One with IP xxxx4 - xxxx6 (this computerhave 3 IP - xxx4, xxx5, xxx6)

Second with IP xxx7

On one computer xxxx4 (debian) i install vmware (with debian) - this new debian on vmware have IP 172.16.40.128

From computer xxx4 i can ssh to ....128

From computer xxx7 i CANNOCT ssh to ...128

Reply
0 Kudos
MtMan
Enthusiast
Enthusiast

From computer xxx7 can you ping 172.16.40.128 ?

prompt> ping 172.16.40.128

Tell us if this works.

I would assume computer xxx7 is on the same subnet as your VM debian (172.16.40.128).

By same subnet I mean computer xxx7 would be 172.16.40.xxx7

If your virtual machine has an IP assigned that is not in the same subnet range you may not be able to route from computer xxx7 to your virtual machine.

It sounds like your computer xxx7 is 193.19.177.xxx7 and your virtual machine is 172.16.40.128.

Normally your virtual machine would have the same first three sets of numbers as your hosts IP address.

It might be helpful if you gave the full IP address for your case.

Reply
0 Kudos
stdvorak
Contributor
Contributor

From xxx7 i cannoct ping 172.16.40.128

From xxx4 i can ping 172.16.40.128 + i can join via ssh

computer xxx7 = 193.19.177.xxxx7

computer xxx4 = 193.19.177.xxx4 - i mean if its some subnet, BUT i need join to 172.16.40.128 from

It sounds like your computer xxx7 is 193.19.177.xxx7 and your virtual machine is 172.16.40.128. Right

I mean, if i must anyway said vmware:You are normal pc with access from outside... But i dont know how - now can acceess only from localhost.... - i mean if is maybe wrong configuration in vmware (Network Adapter = nat - its now) + wrong configuration debian on vmware /etc/network/interfaces ...........

Reply
0 Kudos