I tried ssh-copy-id but I get errors:
Password: ^ % Invalid input detected at '^' marker. ^ % Invalid input detected at '^' marker. ^ I believe MOS doesn't support that command.
How can I ssh using my keys instead of always using the password?
You're right, MOS doesn’t support ssh-copy-id or interactive shell commands in the same way. Instead, you typically manually add your public SSH key to the correct location.
Login as you do now with the password and then:
.ssh directory under the user you login as and set permissions. mkdir -p ~/.ssh followed by chmod 700 ~/.ssh./home/admin/.ssh/authorized_keys or /home/<username>/.ssh/authorized_keys. Simply edit the file with vi like: vi ~/.ssh/authorized_keys and paste the key text followed by saving (type :wq - write and quit).chmod 600 ~/.ssh/authorized_keys.Now you should be able to login.
Just make sure you set the permissions correctly.
~/.ssh is 700~/.ssh/authorized_keys is 600