-
Notifications
You must be signed in to change notification settings - Fork 0
Jay Dobies edited this page Mar 9, 2017
·
1 revision
SSH can be used to forward from one machine to a VM on another. For instance, a developer workstation can access HTTP on a VM on a separate server. The command, which will not run a command when started, is run on the server as follows:
ssh -R <server_port>:<vm_ip>:<vm_port> -N <workstation_ip>
Install sshfs
sudo yum install fuse-sshfs
Mount the dir:
sshfs -o IdentityFile=<path> <user>@<ip>:<dest> <mount_point>
Example:
sshfs -o IdentityFile=/home/jdob/.ssh/id_rsa jdob@192.168.122.125:/opt/stack/heat /opt/sshfs/heat
Unmount as usual
sudo umount <mount_point>