From: Konrad Rzeszutek Wilk Date: Fri, 14 Jun 2013 18:02:56 +0000 (-0400) Subject: debugspace: Move the ssh_stuff in root/ssh_stuff X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=df211e931b298c43051c636c7e210ad9d9ecaf07;p=xentesttools%2Fbootstrap.git debugspace: Move the ssh_stuff in root/ssh_stuff (And also alter the README file to reflect new path). Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/root_image/debugspace/root/ssh_stuff/README b/root_image/debugspace/root/ssh_stuff/README new file mode 100644 index 0000000..ef4096b --- /dev/null +++ b/root_image/debugspace/root/ssh_stuff/README @@ -0,0 +1,36 @@ +I am tired of using that newly generated SSH key all the time. How can I +put my own SSH key on the root image? + +In the bootstrap/debugspace/root/ssh_stuff create your SSH keys: + + /usr/bin/ssh-keygen -t rsa1 -b 1024 -f ssh_host_key -N '' | tail -1 + /usr/bin/ssh-keygen -t dsa -b 1024 -f ssh_host_dsa_key -N '' | tail -1 + /usr/bin/ssh-keygen -t rsa -b 1024 -f ssh_host_rsa_key -N '' | tail -1 + + chmod 400 ssh_host_key + chmod 400 ssh_host_dsa_key + chmod 400 ssh_host_rsa_key + + rm -f ssh_host_key.pub + rm -f ssh_host_dsa_key.pub + rm -f ssh_host_rsa_key.pub + +Then you need to generate your own SSH keys: + + +[konrad@localhost ssh_stuff]$ ssh-keygen -t rsa +Generating public/private rsa key pair. +Enter file in which to save the key (/home/konrad/.ssh/id_rsa): +Created directory '/home/konrad/.ssh'. +Enter passphrase (empty for no passphrase): +Enter same passphrase again: +Your identification has been saved in /home/konrad/.ssh/id_rsa. +Your public key has been saved in /home/konrad/.ssh/id_rsa.pub. +.. + +Copy the .ssh/id_rsa.pub in the bootstrap/debugspace/root/ssh_stuff/authorized_keys2 +file. + +The next time you login in the XTT environment it should not ask you for any +password (except the password you might have choosen when creating your local +key). diff --git a/root_image/debugspace/ssh_stuff/README b/root_image/debugspace/ssh_stuff/README deleted file mode 100644 index a6f5c22..0000000 --- a/root_image/debugspace/ssh_stuff/README +++ /dev/null @@ -1,36 +0,0 @@ -I am tired of using that newly generated SSH key all the time. How can I -put my own SSH key on the root image? - -In the bootstrap/debugspace/ssh_stuff create your SSH keys: - - /usr/bin/ssh-keygen -t rsa1 -b 1024 -f ssh_host_key -N '' | tail -1 - /usr/bin/ssh-keygen -t dsa -b 1024 -f ssh_host_dsa_key -N '' | tail -1 - /usr/bin/ssh-keygen -t rsa -b 1024 -f ssh_host_rsa_key -N '' | tail -1 - - chmod 400 ssh_host_key - chmod 400 ssh_host_dsa_key - chmod 400 ssh_host_rsa_key - - rm -f ssh_host_key.pub - rm -f ssh_host_dsa_key.pub - rm -f ssh_host_rsa_key.pub - -Then you need to generate your own SSH keys: - - -[konrad@localhost ssh_stuff]$ ssh-keygen -t rsa -Generating public/private rsa key pair. -Enter file in which to save the key (/home/konrad/.ssh/id_rsa): -Created directory '/home/konrad/.ssh'. -Enter passphrase (empty for no passphrase): -Enter same passphrase again: -Your identification has been saved in /home/konrad/.ssh/id_rsa. -Your public key has been saved in /home/konrad/.ssh/id_rsa.pub. -.. - -Copy the .ssh/id_rsa.pub in the bootstrap/debugspace/ssh_stuff/authorized_keys2 -file. - -The next time you login in the XTT environment it should not ask you for any -password (except the password you might have choosen when creating your local -key).