Link to home
Start Free TrialLog in
Avatar of Smanyx
Smanyx

asked on

How to enable SSH in Ubuntu.

Hi,

 I would like to connect to my Virtual machine running Ubuntu 14.04 LTS inside virtualbox on a Windows 7 laptop host.
I have the IP address of the virtual machine but can't figure out how to use SSH to connect to it. I would to use either WinSCP or PuTTy to access or transfer files to the virtual machine.
Thanks for your help.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To enable the SSH server, the command is below using port 22


sudo apt-get install openssh-server
Avatar of Smanyx
Smanyx

ASKER

I've sudoed into root on my box
ran sudo apt-get install openssh-server
but when i go to WinSCP, enter the ip address and try to connect using either my username or root and my ubuntu password it doesn't allow me.
Please see attached screen shot.
img.png
What port did you use?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Smanyx

ASKER

Thank you so much. I've been able to access my VM from WinSCP.
You can only use root, if you configure sshd to use root.