mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Updated README.md and added the add_ssh_key_to_host shell function
This commit is contained in:
parent
278616e952
commit
85962059de
2 changed files with 34 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ There are some helpful functions to maintain things:
|
|||
|
||||
config_omzs_for_host # stubs out a hierarchy for a specified remote hostname
|
||||
|
||||
add_ssh_key_to_host # copy your .ssh/id_rsa.pub or id_dsa.pub key to a remote host
|
||||
|
||||
propagate_omzs_to_host # copies your ~/.oh-my-zsh directory to a remote host
|
||||
|
||||
load_omzs_on_alias # run this on a remote host to setup an alias 'omzs' to load oh-my-zsh
|
||||
|
|
@ -74,6 +76,8 @@ There are some helpful functions to maintain things:
|
|||
|
||||
* `config_omzs_for_host` - "Usage: config_omzs_for_host HOSTNAME" - creates a directory structure for your remote machine and stubs out a few .sh files
|
||||
|
||||
* `add_ssh_key_to_host` - "Usage: add_ssh_key_to_host [user@]HOSTNAME" - Add your public SSH key to a remote host. You may have to enter your password up to 3 times. After that it will be passwordless if the remote sshd server is setup to allow it
|
||||
|
||||
* The `load_omzs_on_alias` function is nice if others also use that account and you don't want to force them to use your oh-my-zsh settings.
|
||||
|
||||
* `propagate_omzs_to_host` - "Usage: propagate_omzs_to_host [user@]HOSTNAME" - compresses your `~/.oh-my-zsh` directory, uploads it to the specified host account, decompresses it and reminds you to run one of `load_omzs_on_alias` or `load_omzs_on_login`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue