diff options
author | Dave Young <dyoung@redhat.com> | 2011-12-26 14:29:21 +0800 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-01-23 09:48:35 +0100 |
commit | cdfeb278ab4d4b6a9d848e1b9accc3554e4ac6eb (patch) | |
tree | 9bcda28d08ac734b8649c0fc0366478f73868c86 /dracut.8.xml | |
parent | 85bb744dfeb4f86979609b24323fec5181a1b98c (diff) | |
download | dracut-cdfeb278ab4d4b6a9d848e1b9accc3554e4ac6eb.tar.gz dracut-cdfeb278ab4d4b6a9d848e1b9accc3554e4ac6eb.tar.bz2 dracut-cdfeb278ab4d4b6a9d848e1b9accc3554e4ac6eb.zip |
Add ssh client module code
Add ssh client module which support ssh key mode and interactive mode.
with --sshkey option you can provide the ssh key to be installed
>why not call it "ssh" module?
ssh-client is better, maybe future there will be ssh-server come in.
In debian these are also two different packages.
Usage:
1. sshkey mode:
transfer your public key to remote machine with ssh-copy-id or do it mannaully
example of options:
./dracut -l -H -a ssh-client --sshkey /root/.ssh/id_rsa i.img
2. interactive mode:
need use --ctty option, ie.:
./dracut -l -H -a ssh-client --ctty i.img
[v2 changes]:
per wangcong: add patch description about module name
add help line in usage()
remove useless comment
Signed-off-by: Dave Young <dyoung@redhat.com>
Diffstat (limited to 'dracut.8.xml')
-rw-r--r-- | dracut.8.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dracut.8.xml b/dracut.8.xml index 955d4d28..5a5df54c 100644 --- a/dracut.8.xml +++ b/dracut.8.xml @@ -370,6 +370,14 @@ Default: </varlistentry> <varlistentry> <term> + <option>--sshkey <replaceable><sshkey file></replaceable></option> + </term> + <listitem> + <para>ssh key file used with ssh-client module.</para> + </listitem> + </varlistentry> + <varlistentry> + <term> <option>-l</option> </term> <term> |