Enable access to a remote host
In most cases you will not need to add your own SSH public key to other INCD remote hosts as there are other processes to do so, namelly:
- To get access to the INCD login hosts you
mustwill be required to send your SSH public key to the INCDadministrators.administratorsHoweverthatinwillcertaininstallcasesitsuchwhereasneededwhenand will report back to you.
IfHowever if you need to add a key manually to a remote host account the required steps are:- login into the remote host account or access its home directory through the root account
- check if the account directory
exists in the home directory of the remote user, if not create it with$HOME/~user/.sshmkdir$HOME/~user/.ssh; chmod u=rwx$HOME/~user/.ssh - check if the file
exists under$HOME/~user/.ssh/authorized_keys, if not create the file with$HOME/~user/.sshtouch$HOME/~user/.ssh/authorized_keys; chmod u=rw$HOME/~user/.ssh/authorized_keys - copy the public key to the remote host and append it to the file
make sure not to overwrite other keys that may already exist.$HOME/~user/.ssh/authorized_keys - If you did the above steps from the root account make sure the files ownership are correct and if not change them to the correct uid and gid with
chown -R user.group ~user/.ssh