How to connect a server

by JOHN

jwstory
random_image

How to connect a server using SSH in terminal

Reference

  1. Download default key.
  2. Move the downloaded key to target directory.
  3. sudo chmod 400 /path/to/target directory/private-key.pem
  4. ssh -i /path/to/private-key.pem username@public-ip-address

username

  • Amazon Linux, Amazon Linux 2, FreeBSD, and openSUSE instances: ec2-user

  • CentOS instances: centos

  • Debian instances: admin

  • Ubuntu instances: ubuntu

  • Bitnami instances: bitnami

  • Plesk instances: ubuntu

  • cPanel & WHM instances: centos


0
Leave a Comment:
Search