remote_file.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Remote files
  2. ==============
  3. .. only:: man
  4. Overview
  5. --------------
  6. |kitty| has the ability to easily *Edit*, *Open* or *Download* files from a
  7. computer into which you are SSHed. In your SSH session run::
  8. ls --hyperlink=auto
  9. Then hold down :kbd:`Ctrl+Shift` and click the name of the file.
  10. .. figure:: ../screenshots/remote_file.png
  11. :alt: Remote file actions
  12. :align: center
  13. :width: 100%
  14. Remote file actions
  15. |kitty| will ask you what you want to do with the remote file. You can choose
  16. to *Edit* it in which case kitty will download it and open it locally in your
  17. :envvar:`EDITOR`. As you make changes to the file, they are automatically
  18. transferred to the remote computer. Note that this happens without needing
  19. to install *any* special software on the server, beyond :program:`ls` that
  20. supports hyperlinks.
  21. .. seealso:: See the :ref:`edit-in-kitty <edit_file>` command
  22. .. seealso:: See the :doc:`transfer` kitten
  23. .. versionadded:: 0.19.0
  24. .. note::
  25. For best results, use this kitten with the :doc:`ssh kitten <./ssh>`.
  26. Otherwise, nested SSH sessions are not supported. The kitten will always try to copy
  27. remote files from the first SSH host. This is because, without the ssh
  28. kitten, there is no way for
  29. |kitty| to detect and follow a nested SSH session robustly. Use the
  30. :doc:`transfer` kitten for such situations.
  31. .. note::
  32. If you have not setup automatic password-less SSH access, and are not using
  33. the ssh kitten, then, when editing
  34. starts you will be asked to enter your password just once, thereafter the SSH
  35. connection will be re-used.
  36. Similarly, you can choose to save the file to the local computer or download
  37. and open it in its default file handler.