Create a SSH Key Authorization to Install NS Agent on UNIX/Linux

Create a SSH Key Authorization to Install NS Agent on UNIX/Linux

How will you create a SSH Key Authorization in order to push install the UNIX/Linux Notification Server Agent? This tech tip will tell you the method to do so.

  1. On computer to connect to:
    1. create /root/.ssh
    2. chmod 700 .ssh
  2. On the computer to connect from:
    1. Run ssh-keygen to generate rsa keys. In this case, there is id_rsa and id_rsa.pub. It is recommended a 2048 bit count.
    2. scp id_rsa.pub to machine to connect to: scp id_rsa.pub root@myhost:.ssh
    3. copy id_rsa (the private key) to a secure location (unshared directory) on the Notification Server.
  3. On computer to connect to:
    1. cd to /root/.ssh
    2. cat id_rsa.pub >> authorized_keys
  4. On Notification Server Console:
    1. Add ip/hostname of computer to connect to.
    2. Click Install Settings.
    3. Select Try to connect via SSH using SSH Key authorization.
    4. In the SSH Key File box, browse to id_rsa; change the Files of type option from *.sk to *.* to get the file. In other words, you are not using a file generated by the Altiris utility.
    5. Set password, if needed. I did not have one and I am assuming this is the passphrase used to generate the rsa key.
    6. Select RSA as the key type.
    7. Click Apply and close.
    8. Click the Install Altiris Agent button. The connection should then complete.
Note: The public key should have the format similar to this and that everything is on one line in the actual public key file. Note that it does not include the user@hostname entry at the end of the string.
ssh-rsa
ABCDInvalidyc2EAAAABIwAAAQEA0zCBY+0JdlY1UyJ/cmFVeFVURxPbVP6g0obnVSK29+THJZANKKSYv6ueyehXRL77Vy/RgGa84rDfuYQKw2j/GH+xKCbd1lO8YDT7gJbEBtbMiX5jAVrcPVI9a6B6Ype5MGXAtaZaPNguRB4aVfdUuBYHB4RBWnco8KMDtTUuj5LRuAnDqzfbKobxSx3XH5psEWlXxRT9TG/gK/L4h2EFRyM/Z6bQRQJxUNHDJ7L0GV75DSqgQle0wysko+aOgtT9diG3/ZvNVAy0VsWy74LFgHgyestdiFXUI0m0XKoZ+WtVb6fuyJU8vTMJEiVgqlmpqawm76aY0AC7o/eTNOzFVQ00

3.04762
Average: 3 (21 votes)