Add -c <command> option to force a specific command

This change adds a -c option to dropbear, to force the session to use a
specific command, in a similar fashion to OpenSSH's ForceCommand
configuration option.

This is useful to provide a simple fixed service over ssh, without
requiring an authorized key file for the per-key forced_command option.

This setting takes precedence over the channel session's provided
command, and the per-key forced_command setting.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
3 files changed
tree: 10ff821cf12b67d9bc2874253f1469b03f09d124
  1. debian/
  2. libtomcrypt/
  3. libtommath/
  4. .hgsigs
  5. .hgtags
  6. .travis.yml
  7. agentfwd.h
  8. algo.h
  9. atomicio.c
  10. atomicio.h
  11. auth.h
  12. bignum.c
  13. bignum.h
  14. buffer.c
  15. buffer.h
  16. CHANGES
  17. channel.h
  18. chansession.h
  19. circbuffer.c
  20. circbuffer.h
  21. cli-agentfwd.c
  22. cli-auth.c
  23. cli-authinteract.c
  24. cli-authpasswd.c
  25. cli-authpubkey.c
  26. cli-channel.c
  27. cli-chansession.c
  28. cli-kex.c
  29. cli-main.c
  30. cli-runopts.c
  31. cli-session.c
  32. cli-tcpfwd.c
  33. common-algo.c
  34. common-channel.c
  35. common-chansession.c
  36. common-kex.c
  37. common-runopts.c
  38. common-session.c
  39. compat.c
  40. compat.h
  41. config.guess
  42. config.sub
  43. configure.ac
  44. crypto_desc.c
  45. crypto_desc.h
  46. curve25519-donna.c
  47. dbclient.1
  48. dbhelpers.c
  49. dbhelpers.h
  50. dbmulti.c
  51. dbrandom.c
  52. dbrandom.h
  53. dbutil.c
  54. dbutil.h
  55. debug.h
  56. dh_groups.c
  57. dh_groups.h
  58. dropbear.8
  59. dropbearconvert.1
  60. dropbearconvert.c
  61. dropbearkey.1
  62. dropbearkey.c
  63. dss.c
  64. dss.h
  65. ecc.c
  66. ecc.h
  67. ecdsa.c
  68. ecdsa.h
  69. fake-rfc2553.c
  70. fake-rfc2553.h
  71. filelist.txt
  72. gendss.c
  73. gendss.h
  74. genrsa.c
  75. genrsa.h
  76. gensignkey.c
  77. gensignkey.h
  78. includes.h
  79. INSTALL
  80. install-sh
  81. kex.h
  82. keyimport.c
  83. keyimport.h
  84. LICENSE
  85. list.c
  86. list.h
  87. listener.c
  88. listener.h
  89. loginrec.c
  90. loginrec.h
  91. ltc_prng.c
  92. ltc_prng.h
  93. Makefile.in
  94. MULTI
  95. netio.c
  96. netio.h
  97. options.h
  98. packet.c
  99. packet.h
  100. process-packet.c
  101. progressmeter.c
  102. progressmeter.h
  103. queue.c
  104. queue.h
  105. README
  106. release.sh
  107. rsa.c
  108. rsa.h
  109. runopts.h
  110. scp.c
  111. scpmisc.c
  112. scpmisc.h
  113. service.h
  114. session.h
  115. signkey.c
  116. signkey.h
  117. SMALL
  118. ssh.h
  119. sshpty.c
  120. sshpty.h
  121. svr-agentfwd.c
  122. svr-auth.c
  123. svr-authpam.c
  124. svr-authpasswd.c
  125. svr-authpubkey.c
  126. svr-authpubkeyoptions.c
  127. svr-chansession.c
  128. svr-kex.c
  129. svr-main.c
  130. svr-runopts.c
  131. svr-service.c
  132. svr-session.c
  133. svr-tcpfwd.c
  134. svr-x11fwd.c
  135. sysoptions.h
  136. tcp-accept.c
  137. tcpfwd.h
  138. termcodes.c
  139. termcodes.h
  140. TODO
  141. x11fwd.h