diff options
| author | Tomi Ollila <tomi.ollila@iki.fi> | 2013-01-28 15:49:11 +0200 |
|---|---|---|
| committer | Tomi Ollila <tomi.ollila@iki.fi> | 2013-01-28 15:49:22 +0200 |
| commit | 1b2ec15324d8476ea40baf8263a91695f4a45713 (patch) | |
| tree | fdc9548f21e319e51920b1dfbf142ab286ea7bc2 | |
| parent | fba92243c49d68d34e4e7259e687885ed110a0e8 (diff) | |
replaced /home/user with ~ and gave master socket
a name that looked best in the examples found in the net
added note about execute permissions
| -rw-r--r-- | remoteusage.mdwn | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 8eb99e4..7f0d9b7 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -40,12 +40,12 @@ Add this to your `~/.ssh/config`: HostName example.com User remoteuser ControlMaster auto - ControlPath /home/user/.ssh/%h_%p_%r + ControlPath ~/.ssh/master-%h@%p:%r ControlPersist 15m - IdentityFile /home/user/.ssh/example.com.id_rsa + IdentityFile ~/.ssh/example.com.id_rsa Replace `example.com` with your server. Replace `remoteuser` with the -username on the server. Replace `/home/user` with your home directory. +username on the server. The `Control*` options keep the connection open in the background to not require authentication every time. The `ControlPersist` option defines @@ -66,6 +66,8 @@ Save this to a file, for example `remote-notmuch.sh`, in your `PATH`: printf -v ARGS "%q " "$@" exec ssh notmuch notmuch ${ARGS} +and give it execute permissons: `chmod +x remote-notmuch.sh` + Now you can run `remote-notmuch.sh new`, or other notmuch commands. You can call the script anything you like. (You could also call it `notmuch` or symlink `~/bin/notmuch` to it for transparent usage.) |
