Last update: March 17, 2019. This website uses cookies. By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. More information

 Actions

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
Done.

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,127.0.0.1,2200,,22 ; echo $?

When there is an error, you will see this.

VBoxManage: error: The machine '{{gateway_product_name_short}}8.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
1

When it succeeded, you will see this.

0

Whonix-Gateway ™ AND Whonix-Workstation ™.

sudo apt-get update

sudo apt-get install openssh-server

On Whonix-Gateway ™.

echo "GATEWAY_ALLOW_INCOMING_SSH=1"

sudo whonix_firewall

On Whonix-Gateway ™.

ssh.anondist-orig 10.152.152.11

Yes (accept fingerprint).

Terminate ssh connection.

exit

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.

THINK FIRST!

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.

THINK FIRST!

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

Run[edit]

On the host.

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

sshfs -p 2222 user@127.0.0.1:/ ~/mountworkstation

Footnotes[edit]

  1. Restart X may do the trick as well.

No user support in comments. See Support.

Comments will be deleted after some time. Specifically after comments have been addressed in form of wiki enhancements. See Wiki Comments Policy.


Add your comment
Whonix welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Random News:

Do you wonder why Whonix will always be free? Check out Why Whonix is Freedom Software.


https | (forcing) onion

Share: Twitter | Facebook

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation.

Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee of the Open Invention Network. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)

Whonix ™ is a derivative of and not affiliated with Debian. Debian is a registered trademark owned by Software in the Public Interest, Inc.

Whonix ™ is produced independently from the Tor® anonymity software and carries no guarantee from The Tor Project about quality, suitability or anything else.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. Whonix ™ is provided by ENCRYPTED SUPPORT LP. See Imprint.