Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

SFTP is probably the most widely used "ssh subsystem". This O'Reilly chapter gives some more usage examples; it presents subsytems as "shortcuts" to various commands that can be used.

How do you use this subsytem feature ?

Is there a practical way to limit an ssh key to a subsystem, possibly replacing command restriction option of ssh keys?

share|improve this question
up vote 2 down vote accepted

A very cool feature that's based on SFTP is sshfs(1):

sshfs -o workaround=all user@remotehost:/ /path/to/localdir

will mount the whole disk at remotehost at the local directory /path/to/localdir . No installation necessary at remotehost,all you need is the sshfs program.

share|improve this answer
I concur. SSHFS is amazing, but I don't think this answers the given question. – Andrew Jun 8 '09 at 20:41
Hm, maybe not, but as I read the post, there were two questions. I replied to the "How do you use this subsystem feature?" part. :) – sunny256 Jun 8 '09 at 20:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.