SSH preparations
On the client system where you will run the CLI telnet sessions from, do the following:
Generate a keypair without passphrase:
ssh-keygen -N '' -t dsa -f ~/.ssh/nbicliclient.id_dsa
The public key will then be generated in the file:
~/.ssh/nbicliclient.id_dsa.pub
This file has to be transferred somehow to the FOXMAN-UN core system into the previously generated account (named “nbicli” in this example). The contents of the file above have to be added to the file containing the normally authorized keys.
The easiest and most secure way to do this is:
cat ~/.ssh/nbicliclient.id_dsa.pub | \ssh nbicli@foxman-unHost.dns.dom \ "( cat >> .ssh/authorized_keys && \chmod 600 .ssh/authorized_key )"
You will be prompted for the password for the account: nbicli.
The file authorized_keys has the correct permissions now.
In order to enable SSH access to the FOXMAN-UN core host without having to type a passphrase ensure to always use the generated local private key (see the –i option below):
~/.ssh/nbicliclient.id_dsa
The connection can be tested without a password prompt by entering the following command:
ssh -i ~/.ssh/nbicliclient.id_dsa nbicli@foxman-unHost.dns.dom