UMIACS Servers: Difference between revisions
Line 117: | Line 117: | ||
Subsystem sftp /usr/libexec/openssh/sftp-server | Subsystem sftp /usr/libexec/openssh/sftp-server | ||
</pre> | </pre> | ||
Start the sshd daemon and proxy the port to your local sshd | Start the sshd daemon and proxy the port to your local sshd. | ||
You can make a script like this: | |||
<pre> | |||
#!/bin/bash | |||
LOCAL_PORT=5981 | |||
REMOTE_PORT=22350 | |||
REMOTE_SSH_PORT=22450 | |||
REMOTE_ADDR=192.168.78.34 | |||
/usr/sbin/sshd -D -f sshd_config & \ | |||
ssh -R $REMOTE_PORT:localhost:$LOCAL_PORT root@$REMOTE_ADDR -p $REMOTE_SSH_PORT | |||
</pre> | |||
On your PC: | On your PC: |