New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Installation of Foswiki: Answered

VirtualMachineImages misleading? How to get ssh access.

Access to the VM through ssh

I have installed the Foswiki VM under VirtualBox. Works a treat. After I had installed it all, I followed the instructions at HowToRunVirtualMachineImageOnVirtualBox

I use the NAT access method. And set up the port forwarding using:
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki/Protocol" TCP
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki/GuestPort" 80
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki/HostPort" 8888
And now http://localhost:8888 brings up the Foswiki front page.

I would like to use ssh to perform actions on the VM, and understood from VirtualMachineImages that ssh root@ would do the job. Well, it did not.

Thinking about it I decided that I should probably forward a port from localhost to port 22 on the VM. So I did:
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki-ssh/Protocol" TCP
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki-ssh/GuestPort" 22
VBoxManage setextradata "foswiki-1.0.0" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/foswiki-ssh/HostPort" 8822
And tried ssh root@localhost:8822

But I did not get a response. Any suggestions how to get ssh access to the VM?

I do appreciate the VirtualMachineImages page. It has lots of useful info. But it does not align with the installation instructions in HowToRunVirtualMachineImageOnVirtualBox. And I don't quite understand what is missing.

-- BramVanOosterhout - 16 Apr 2009

OK, I know what is missing. The VirtualMachineImages page assumes Host Interface Networking for the virtual machine. In the Network setup on Virtualbox, you select: Host Interface and the appropriate Network Card boot up the VM and you get network IP address from the DHCP server. I got Then I can use ssh root@ too login. Too easy!

The Virtualbox manual says that what I described above should work as well. I must have done something wrong. I'll figure out what some other time. Thanks for listening.

-- BramVanOosterhout - 20 Apr 2009

Hi BramVanOosterhout. May I ask you to update the docs? smile Its a wiki.

-- OliverKrueger - 03 May 2009

QuestionForm edit

Subject Installation of Foswiki
Status Answered
Topic revision: r3 - 03 May 2009, OliverKrueger - This page was cached on 11 Mar 2018 - 14:03.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License