[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 407402d 100/173: Improved documentation abou
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 407402d 100/173: Improved documentation about interaction-free password-based authentication |
Date: |
Sat, 20 Oct 2018 10:36:38 -0400 (EDT) |
branch: externals/ssh-deploy
commit 407402d0bdfc65923739eed1e8f71d3eb81b4dd9
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Improved documentation about interaction-free password-based authentication
---
README.md | 7 +++++--
ssh-deploy.el | 13 ++++++++-----
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 4f9b84c..5921fa1 100644
--- a/README.md
+++ b/README.md
@@ -95,13 +95,15 @@ Host remote-host
IdentityFile identity-file
```
-## Interaction-free FTP setup on *NIX systems
+## Interaction-free password-based setup on *NIX systems
For automatic **FTP** connections you need to setup `~/.netrc` with your login
credentials. An example:
`~/.netrc` contents:
``` shell
machine myserver.com login myuser port ftp password mypassword
+machine myserver2.com login myuser2 port ssh password mypassword2
+machine myserver3.com login myuser3 port sftp password mypassword3
```
Set your user and group as owner and file permissions to `600`. Emacs should
now be able to automatically connect to this server via FTP without any user
interaction.
@@ -113,6 +115,7 @@ Set your user and group as owner and file permissions to
`600`. Emacs should now
``` elisp
;; ssh-deploy - prefix = C-c C-z, f = forced upload, u = upload, d = download,
x = diff, t = terminal, b = browse
(add-to-list 'load-path "~/.emacs.d/ssh-deploy/")
+(require 'ssh-deploy')
(add-hook 'after-save-hook (lambda() (if (and (boundp
'ssh-deploy-on-explicit-save) ssh-deploy-on-explicit-save)
(ssh-deploy-upload-handler)) ))
(add-hook 'find-file-hook (lambda() (if (and (boundp
'ssh-deploy-automatically-detect-remote-changes)
ssh-deploy-automatically-detect-remote-changes)
(ssh-deploy-remote-changes-handler)) ))
(global-set-key (kbd "C-c C-z f") (lambda()
(interactive)(ssh-deploy-upload-handler-forced) ))
@@ -160,7 +163,7 @@ Set your user and group as owner and file permissions to
`600`. Emacs should now
("B" ssh-deploy-browse-remote-handler)))
```
-You can remove the `add-to-list` line if you installed via `MELPA` repository.
+You can remove the `(add-to-list)` and `(require)` lines if you installed via
`MELPA` repository.
* Restart Emacs
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 319a479..e04e892 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -3,7 +3,7 @@
;; Author: Christian Johansson <github.com/cjohansson>
;; Maintainer: Christian Johansson <github.com/cjohansson>
;; Created: 5 Jul 2016
-;; Modified: 26 Jan 2018
+;; Modified: 28 Jan 2018
;; Version: 1.73
;; Keywords: tools, convenience
;; URL: https://github.com/cjohansson/emacs-ssh-deploy
@@ -29,10 +29,11 @@
;;; Commentary:
-;; ssh-deploy enables automatic deploys on explicit-save, manual uploads,
renaming,
-;; deleting, downloads, file differences, remote terminals, detection of
remote changes and remote directory browsing via TRAMP.
+;; ssh-deploy enables automatic deploys on explicit-save actions, manual
uploads, renaming,
+;; deleting, downloads, file and directory differences, launching remote
terminals,
+;; detection of remote changes and remote directory browsing via TRAMP.
;;
-;; For asynchrous operations it uses async.el,
+;; For asynchrous operations it uses package async.el.
;;
;; By setting the variables (globally, per directory or per file):
;; ssh-deploy-root-local,ssh-deploy-root-remote, ssh-deploy-on-explicit-save
@@ -40,8 +41,10 @@
;;
;; For asynchronous transfers you need to setup ~/.netrc or key-based
authorization or equivalent for automatic authentication.
;;
-;; Example contents of ~/.netrc for FTP:
+;; Example contents of ~/.netrc for password-based interaction-free
authentication:
;; machine myserver.com login myuser port ftp password mypassword
+;; machine myserver2.com login myuser2 port ssh password mypassword2
+;; machine myserver3.com login myuser3 port sftp password mypassword3
;;
;; Set permissions to this file to 700 with you as the owner.
;;
- [elpa] externals/ssh-deploy 8900586 163/173: Started working on support for deploy script, (continued)
- [elpa] externals/ssh-deploy 8900586 163/173: Started working on support for deploy script, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e24f69d 127/173: Fixes 'display-warning throws 'wrong-type-argument error #39, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e869836 171/173: Added support for asynchronous deployment scripts, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 0ff0f77 152/173: Using a stack for buffer status instead, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 57f8638 167/173: Fixed issue were no run script was defined, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 8ed82d6 060/173: Added force upload handler, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy b53b875 078/173: Improved remote eshell integration, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 08d5778 083/173: Added example hydra to README, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5e0403c 085/173: Instructions for FTP in macOS 10.13, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 0d8b5de 095/173: Only open directory diff buffer if there was any differences, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 407402d 100/173: Improved documentation about interaction-free password-based authentication,
Stefan Monnier <=
- [elpa] externals/ssh-deploy d0b45f4 106/173: Fixed typos in readme, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 6f54fd5 110/173: Fixed bug where upload file into folder that does not exist on remote, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 9d6d8a4 136/173: Improved comments, trying to trigger MELPA refresh, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy a724653 077/173: Added support for launching remote eshell, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 2226edb 088/173: Merge branch 'master' of https://github.com/cjohansson/emacs-ssh-deploy, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 72a5033 081/173: Moved safe variables declaration to plugin, made handler functions, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d5315bf 080/173: Fix syntax notices and now restores eshell buffer name, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 454af97 070/173: Added delete function for files and directories, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5cd1f80 092/173: Improved code for detecting remote changes, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e56b316 113/173: Fixed syntax error in (cond) expression, Stefan Monnier, 2018/10/20