I found this article on options that can be put before a key in the authorized_keys file. I was wondering though, are there more? Options listed in the article are

  • from="domain"
  • command="commandtorun"
  • no-port-forwarding
  • no-X11-forwarding
  • no-agent-forwarding
  • no-pty
link|improve this question
feedback

3 Answers

up vote 5 down vote accepted

All options are detailed in the sshd(8) man page; search for authorized_keys.

At the moment, those options are:

 command="command"
 environment="NAME=value"
 from="pattern-list"
 no-agent-forwarding
 no-port-forwarding
 no-pty
 no-user-rc
 no-X11-forwarding
 permitopen="host:port"
 tunnel="n"
link|improve this answer
ah... that's the man page I was looking for. Thanks – mozillalives May 18 '10 at 14:22
feedback

Basically, everything valid for your version is documented in sshd(8) manual page, under "AUTHORIZED_KEYS FILE FORMAT".

link|improve this answer
feedback

Check 'man sshd' on your local unix-ish box for more info. My osx box has the following:

  • command="command"
  • environment="NAME=value"
  • from="pattern-list"
  • no-agent-forwarding
  • no-port-forwarding
  • no-pty
  • no-user-rc
  • no-X11-forwarding
  • permitopen="host:port"
  • tunnel="n"
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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