Skip to main content

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 INCD administrators.administrators Howeverthat inwill certaininstall casesit suchwhere asneeded whenand will report back to you.
  • When using the INCD cloud services you may wantneed to add your SSH key to a VM managed by yourself,yourself. usuallyUsually this is done through the Openstack command line interface or through the Openstack Horizon dashboard.dashboard when the machine is first created and does not require other manual intervention. See the INCD cloud documentation here.

  • IfHowever if you need to add a key manually to a remote host account the required steps are:
    1. login into the remote host account or access its home directory through the root account
    2. check if the account directory $HOME/~user/.ssh exists in the home directory of the remote user, if not create it with mkdir $HOME/~user/.ssh; chmod u=rwx $HOME/~user/.ssh
    3. check if the file $HOME/~user/.ssh/authorized_keys exists under $HOME/~user/.ssh, if not create the file with touch $HOME/~user/.ssh/authorized_keys; chmod u=rw $HOME/~user/.ssh/authorized_keys
    4. copy the public key to the remote host and append it to the file $HOME/~user/.ssh/authorized_keys make sure not to overwrite other keys that may already exist.
    5. 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