geom_gate userland utility improvements
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

204 рядки
5.1 KiB

  1. .\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\" notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\" notice, this list of conditions and the following disclaimer in the
  11. .\" documentation and/or other materials provided with the distribution.
  12. .\"
  13. .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
  14. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  16. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
  17. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  19. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  21. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  22. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. .\" SUCH DAMAGE.
  24. .\"
  25. .\" $FreeBSD$
  26. .\"
  27. .Dd October 21, 2020
  28. .Dt GGATESSH 8
  29. .Os
  30. .Sh NAME
  31. .Nm ggatessh
  32. .Nd "GEOM Gate SSH/SFTP client and control utility"
  33. .Sh SYNOPSIS
  34. .Nm
  35. .Cm create
  36. .Op Fl v
  37. .Op Fl o Cm ro | wo | rw
  38. .Op Fl F Ar pidfile
  39. .Op Fl i Ar identifyfile
  40. .Op Fl l Ar username
  41. .Op Fl p Ar port
  42. .Op Fl q Ar queue_size
  43. .Op Fl s Ar sectorsize
  44. .Op Fl r Ar nrequests
  45. .Op Fl t Ar timeout
  46. .Op Fl u Ar unit
  47. .Ar host
  48. .Ar path
  49. .Nm
  50. .Cm rescue
  51. .Op Fl v
  52. .Op Fl o Cm ro | wo | rw
  53. .Op Fl F Ar pidfile
  54. .Op Fl i Ar identifyfile
  55. .Op Fl l Ar username
  56. .Op Fl p Ar port
  57. .Op Fl r Ar nrequests
  58. .Fl u Ar unit
  59. .Ar host
  60. .Ar path
  61. .Nm
  62. .Cm destroy
  63. .Op Fl f
  64. .Fl u Ar unit
  65. .Nm
  66. .Cm list
  67. .Op Fl v
  68. .Op Fl u Ar unit
  69. .Sh DESCRIPTION
  70. The
  71. .Nm
  72. utility is a network client for the GEOM Gate class.
  73. It is responsible for the creation of
  74. .Nm ggate
  75. devices and forwarding I/O requests between the GEOM Gate
  76. kernel subsystem and an
  77. .Xr sftp-server 8
  78. over SSH.
  79. .Pp
  80. Available commands:
  81. .Bl -tag -width ".Cm destroy"
  82. .It Cm create
  83. Connect to an
  84. .Xr sftp-server 8
  85. via SSH on the specified host and create a
  86. .Nm ggate
  87. provider for the specified remote file or device.
  88. .It Cm rescue
  89. Create a new connection after the
  90. .Nm
  91. process has died or has been killed.
  92. The new connection to the
  93. .Xr sftp-server 8
  94. handles pending and future requests.
  95. If the remote file has changed in size, the ggate device
  96. will be resized to match the new remote size.
  97. .It Cm destroy
  98. Destroy the given
  99. .Nm ggate
  100. provider.
  101. .It Cm list
  102. List
  103. .Nm ggate
  104. providers.
  105. .El
  106. .Pp
  107. Available options:
  108. .Bl -tag -width ".Fl s Cm ro | wo | rw"
  109. .It Fl F Ar pidfile
  110. Write out the daemon's pid to
  111. .Ar pidfile .
  112. The default is
  113. .Pa /var/run/ggatessh.ggate<unit>.pid .
  114. .It Fl f
  115. Forcibly destroy
  116. .Nm ggate
  117. provider (cancels all pending requests).
  118. .It Fl i Ar identityfile
  119. The path to the identity file to use for ssh public key authentication.
  120. If the
  121. .Ar identityfile
  122. is not specified, the default of
  123. .Pa $HOME/.ssh/id_rsa
  124. will be used.
  125. .It Fl l Ar username
  126. The user name to authentice to the server with.
  127. If
  128. .Ar username
  129. is not specified, the default will be
  130. .Ev $USER .
  131. .It Fl o Cm ro | wo | rw
  132. Specify permissions to use when opening the file or device: read-only
  133. .Pq Cm ro ,
  134. write-only
  135. .Pq Cm wo ,
  136. or read-write
  137. .Pq Cm rw .
  138. Default is
  139. .Cm rw .
  140. .It Fl p Ar port
  141. Port to connect to on the remote host.
  142. Default is 22.
  143. .It Fl q Ar queue_size
  144. Number of pending I/O requests that can be queued before they will
  145. start to be canceled.
  146. Default is 1024.
  147. .It Fl r Ar nrequests
  148. Specifies how many requests may be outstanding at a single time.
  149. This determines that maximum number of connections to the
  150. .Xr sftp-server 8
  151. that will be established at a time.
  152. If unspecified, the default is 32.
  153. .It Fl s Ar sectorsize
  154. Sector size for
  155. .Nm ggate
  156. provider.
  157. If not specified, it is taken from the device, or set to 512 bytes for files.
  158. .It Fl t Ar timeout
  159. Number of seconds to wait before an I/O request will be canceled.
  160. Default is 0, which means no timeout.
  161. .It Fl u Ar unit
  162. Unit number to use.
  163. .It Fl v
  164. Do not fork, run in foreground and print debug information on standard
  165. output.
  166. .It Ar host
  167. Remote SSH server to connect to.
  168. .It Ar path
  169. Path to a regular file or device on the remote host.
  170. .El
  171. .Sh EXIT STATUS
  172. Exit status is 0 on success, or 1 if the command fails.
  173. To get details about the failure,
  174. .Nm
  175. should be called with the
  176. .Fl v
  177. option.
  178. .Sh EXAMPLES
  179. Use a CD-ROM device on a remote host.
  180. .Bd -literal -offset indent
  181. server# cat /etc/gg.exports
  182. client RO /dev/cd0
  183. server# ggated
  184. client# ggatec create -o ro server /dev/cd0
  185. ggate0
  186. client# mount_cd9660 /dev/ggate0 /cdrom
  187. .Ed
  188. .Sh SEE ALSO
  189. .Xr geom 4 ,
  190. .Xr ggated 8 ,
  191. .Xr ggatel 8 ,
  192. .Xr mount_cd9660 8
  193. .Sh HISTORY
  194. The
  195. .Nm
  196. utility appeared in
  197. .Fx 5.3 .
  198. .Sh AUTHORS
  199. The
  200. .Nm
  201. utility as well as this manual page was written by
  202. .An Pawel Jakub Dawidek Aq Mt pjd@FreeBSD.org .