Skip to content
Jay Dobies edited this page Mar 9, 2017 · 1 revision

Forwarding

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>

SSHFS

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>

Clone this wiki locally