Connect to a server via ssh

Asked

Viewed 44 times

0

I need to connect to a server via ssh through the terminal. However, this server has a key. I have this key on my computer, I would like to know how to access the server with this key via ssh by mac terminal.

1 answer

0

  1. Go to Finder > Applications > Utilities > Terminal.
  2. Walk to the directory of your key
  3. Execute chmod 600 minha_chave.key (attention to file extension)
  4. Execute ssh -i minha_chave.key usuario@ipdoservidor
  5. When the message appears to confirm, press Enter

Browser other questions tagged

You are not signed in. Login or sign up in order to post.