Actions

SSHFS into Whonix-Workstation

From Whonix



Sshfs.jpg

Introduction[edit]

Ambox warning pn.svg.png Note: this is intended for developers/experts only!

This wiki chapter should only be used for debugging purposes.

SSHFS Procedure[edit]

Info Only complete these steps once.

Add Membership[edit]

Perform these steps 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, this message will appear.

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

And should reboot. [1]

If this message appears.

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.

Import Whonix ™ VMs[edit]

Perform these steps on the host.

  • import Whonix-Gateway ™
  • import Whonix-Workstation ™

Modify the Whonix-Gateway ™ VM[edit]

Perform this step on the host.

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

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

If there is an error, the following message will appear.

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

If the procedure is successful, the following message will appear.

0

Update and Install OpenSSH[edit]

Perform these steps on both Whonix-Gateway ™ and Whonix-Workstation ™.

sudo apt-get update

sudo apt-get install openssh-server

Open Ports[edit]

Perform these steps on both Whonix-Gateway ™ and Whonix-Workstation ™.

echo 'EXTERNAL_OPEN_PORTS+=" 22 "' | sudo tee -a "/etc/whonix_firewall.d/50_user.conf"

sudo whonix_firewall

Open an SSH Connection[edit]

Perform these steps on Whonix-Gateway ™.

ssh.anondist-orig 10.152.152.11

Yes (accept fingerprint).

Terminate the SSH connection.

exit

Troubleshooting[edit]

Info If SSH is used on the host for other purposes, it might be better to switch to an extra user.

If necessary, these steps should be performed on the host.

Try the following if you experience problems. This might not be necessary; so think first!

killall ssh

killall sshfs

There also seems to be a bug with existing SSH known_hosts files; try these steps if you experience problems. This might not be necessary; so think first!

The "rm" command can be used instead if you know what you are doing.

trash-put ~/.ssh/known_hosts

trash-put ~/.ssh/known_hosts.old

Or.

#rm ~/.ssh/known_hosts

#rm ~/.ssh/known_hosts.old

Create Necessary Folders[edit]

Perform this step on the host.

mkdir ~/mountworkstation

SSHFS into Whonix-Workstation ™[edit]

Perform these steps 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. If not, restarting X may also work.


Fosshost is sponsors Kicksecure ™ stage server Whonix old logo.png
Fosshost About Advertisements

Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki


Follow: 1024px-Telegram 2019 Logo.svg.png Iconfinder Apple Mail 2697658.png Twitter.png Facebook.png Rss.png Reddit.jpg 200px-Mastodon Logotype (Simple).svg.png

Support: 1024px-Telegram 2019 Logo.svg.png Discourse logo.png Matrix logo.svg.png

Donate: Donate Bank Wire Paypal Bitcoin accepted here Monero accepted here Contriute

Whonix donate bitcoin.png Monero donate Whonix.png United Federation of Planets 1000px.png

Twitter-share-button.png Facebook-share-button.png Telegram-share.png link=mailto:?subject=Sshfs into Whonix-Workstation&body=https://www.whonix.org/wiki/Sshfs_into_Whonix-Workstation link=https://reddit.com/submit?url=https://www.whonix.org/wiki/Sshfs_into_Whonix-Workstation&title=Sshfs into Whonix-Workstation link=https://news.ycombinator.com/submitlink?u=https://www.whonix.org/wiki/Sshfs_into_Whonix-Workstation&t=Sshfs into Whonix-Workstation link=https://mastodon.technology/share?message=Sshfs into Whonix-Workstation%20https://www.whonix.org/wiki/Sshfs_into_Whonix-Workstation&t=Sshfs into Whonix-Workstation

https link onion link Priority Support | Investors | Professional Support

Whonix | © ENCRYPTED SUPPORT LP | Heckert gnu.big.png Freedom Software / Osi standard logo 0.png Open Source (Why?)

The personal opinions of moderators or contributors to the Whonix ™ project do not represent the project as a whole.

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.