The Computer Oracle

How can I connect via SSH (Putty) to my VMWare machine (Ubuntu)?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Ominous Technology Looping

--

Chapters
00:00 How Can I Connect Via Ssh (Putty) To My Vmware Machine (Ubuntu)?
00:37 Accepted Answer Score 38
00:55 Answer 2 Score 25
01:27 Answer 3 Score 10
01:53 Answer 4 Score 1
02:17 Thank you

--

Full question
https://superuser.com/questions/226689/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#ubuntu #ssh #virtualmachine #ip #vmwareworkstation

#avk47



ACCEPTED ANSWER

Score 38


Is the package openssh-server installed on your Ubuntu VM? You'll need that package if you want to connect to it by SSH.

You can make sure by opening a terminal (through VMWare's console, I guess) on Ubuntu and running:

sudo apt-get install openssh-server



ANSWER 2

Score 25


How to do it? Here are the complete steps. Just follow these steps:

  1. In the terminal use command: sudo apt-get install openssh-server

  2. Switch to bridged networking mode, make that change in the Virtual Machine Control Panel (Edit > Virtual Machine Settings)

  3. reboot the VM

  4. Run "ifconfig" command in terminal & get "inet addr" of "eth0"

That's all ! Now use this IP to connect via ssh (I use Putty in my Windows 8)




ANSWER 3

Score 10


If the network is configured properly - either with port-forwarding or as "bridged" and SSH is still not working (from the question text that seems to be the case), then it's either that ssh is not installed or not running. For example, ssh is not running by default on Kali although it's already installed. You'll have to run it yourself.

To start the ssh service:

service ssh start



ANSWER 4

Score 1


Check if the SSH is allowed or not allowed in your firewall settings, if you use Linux with a GUI it might be like this:

Click on system -> Administration -> security level and firewall

Click on firewall option tab, enable it, apply and save.

Here you can allow telnet and https as well. Thanks