Jump to: navigation, search

Sshfs into Whonix-Workstation

Do Once[edit]

Developers / experts only! Only for debugging!

On the host.

If you are not already a member of the fuse group, add yourself.

sudo adduser `whoami` fuse

If you were not already a member, you will see.

Adding user `user' to group `fuse' ...
Adding user user to group fuse

And should reboot. [1]

If you see.

The user `user' is already a member of `fuse'.

Then you are already a member of the fuse group and do not have to reboot.

On the host.

Import Whonix-Gateway

Import Whonix-Workstation

On the host.

Caution if you did not name your VM "Whonix-Gateway"!

VBoxManage modifyvm "Whonix-Gateway" --natpf1 "ssh",tcp,,2200,,22 ; echo $?

When there is an error, you will see this.

VBoxManage: error: The machine 'Whonix-Gateway8.1' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
Context: "LockMachine(a->session, LockType_Write)" at line 377 of file VBoxManageModifyVM.cpp

When it succeeded, you will see this.


Whonix-Gateway AND Whonix-Workstation.

sudo apt-get update

sudo apt-get install openssh-server

On Whonix-Gateway.


sudo whonix_firewall

On Whonix-Gateway.


Yes (accept fingerprint).

Terminate ssh connection.


On the host. If you are using ssh on the host for other purposes, it might be better to switch to an extra user.

On the host. Try this if you are having problems. This might not be neccessary.


killall ssh

killall sshfs

On the host. Try this if you are having problems. This might not be neccessary. There seems to be a bug with existing ssh known_hosts files.


Or "rm" if you know what you are doing

trash-put ~/.ssh/known_hosts

trash-put ~/.ssh/known_hosts.old

#rm ~/.ssh/known_hosts

#rm ~/.ssh/known_hosts.old

On the host.

mkdir ~/mountworkstation


On the host.

ssh -f user@ -p 2200 -L 2222: :22 -N

sshfs -p 2222 user@ ~/mountworkstation


  1. Restart X may do the trick as well.

Impressum | Datenschutz | Haftungsausschluss

https | (forcing) onion
Share: Twitter | Facebook | Google+
This is a wiki. Want to improve this page? Help welcome, volunteer contributions are happily considered! See Conditions for Contributions to Whonix, then Edit! IP addresses are scrubbed, but editing over Tor is recommended. Edits are held for moderation. Whonix (g+) is a licensee of the Open Invention Network. Unless otherwise noted above, content of this page is copyrighted and licensed under the same Free (as in speech) license as Whonix itself.