Educational ICT Virtualisation Specialist

Twitter LinkedIn E-mail
Precedence Technologies Ltd
Technology House, 36a Union Lane
Cambridge, CB4 1QB, United Kingdom
T: +44 (0)8456 446 800 / +44 (0)1223 359900
F: +44 (0)8456 446 899 / +44 (0)1223 359459
E: enquiries@precedence.co.uk
Ssh-keygen

Jump To: Support > KB > NetManager > Ssh > keygen

Setting up ssh keys for other NetManagers or Xenservers

On main NetManager, create RSA key pair (if id_rsa and id_rsa.pub do not exist) and copy to remote server (in this case called backup)

netmanager 1# ls ~/.ssh
authorized_keys known_hosts
netmanager 2# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
85:2f:f0:7f:3d:c6:95:37:f2:34:94:87:38:b5:77:60 root@netmanager
netmanager 3# ls ~/.ssh
authorized_keys id_rsa          id_rsa.pub      known_hosts
netmanager 4# scp ~/.ssh/id_rsa.pub ncadmin@backup:
ncadmin@backup's password:
id_rsa.pub                          100%  395     0.4KB/s   0.4KB/s   00:00

On remote NetManager:

backup 1# cd .ssh/
backup 2# cat ~ncadmin/id_rsa.pub >> authorized_keys.local
backup 3# chown root authorized_keys.local
backup 4# chmod 600 authorized_keys.local
backup 5# /usr/libexec/build/ssh

N.B. Do not place your public keys directly in /root/.ssh/authorized_keys as they will be lost whenever the server is updated or the ssh build script is run.

Or for XenServer:

netmanager 4# scp ~/.ssh/id_rsa.pub root@xenserver01:.ssh/authorized_keys
root@xenserver01's password:
id_rsa.pub                          100%  395     0.4KB/s   0.4KB/s   00:00
© Copyright Precedence Technologies 1999-2017
Page last modified on November 26, 2015, at 08:50 AM by sborrill