3

During creating Virtual server on IBM cloud you are allowed to select one or more SSH key from ssh keys you have added. But I can not find a way to add any new ssh key after instance creation.
So how can I attach ssh key to running IBM Virtual server?

data_henrik
  • 16,724
  • 2
  • 28
  • 49
Mostafa A
  • 53
  • 2

1 Answers1

5

In order to add another SSH key to your virtual server, you have to

  1. log in to that machine and
  2. add the key information to the file ~/.ssh/authorized_keys file

When you take a look into that file, you should see the key(s) configured during instance creation.

data_henrik
  • 16,724
  • 2
  • 28
  • 49
  • The problem is the user who created the instance is no longer reachable so I wanted to add my ssh key but I'm not able to ssh to the current running Instances – Mostafa A May 04 '21 at 21:14
  • My answer is correct. Please mark it as answered. Your problem is similar to the admin leaving the company without handing over important passwords. – data_henrik May 05 '21 at 06:27