]> git.ipfire.org Git - thirdparty/dracut.git/commit - dracut
Add ssh client module code
authorDave Young <dyoung@redhat.com>
Mon, 26 Dec 2011 06:29:21 +0000 (14:29 +0800)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Jan 2012 08:48:35 +0000 (09:48 +0100)
commitcdfeb278ab4d4b6a9d848e1b9accc3554e4ac6eb
tree9bcda28d08ac734b8649c0fc0366478f73868c86
parent85bb744dfeb4f86979609b24323fec5181a1b98c
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>
dracut
dracut.8.xml
modules.d/95ssh-client/module-setup.sh [new file with mode: 0644]