How to connect VPS or Dedicated server via SSH

Michael Schmidt
Published: Aug 23, 2024 by Michael Schmidt
How to connect VPS or Dedicated server via SSH

Download Terminus #

Connect to a Server #

Add a new server to Hosts, you will need:

  • IP address
  • SSH port
  • Username / Password

https://storage.selfhost.guru/images/34dc9541-4f68-4105-83d2-3f3f6950b7e1.webp

Why Using SSH Key? #

A much safer method to connection VPS/Dedicated server is using SSH key, which is very similar how Crypto wallets are working.

PrivateKey: Your SSH Private Key is a long cryptographic hash (this is what you should keep in safe).

PublicKey Your public key is allowing the server to detect that your are using your private key without reveling the server your Private key.

Create a new SSH key with Terminus #

Open Keychain and choose Generate New Key:

https://storage.selfhost.guru/images/ab13cda8-d1c1-45dd-ad44-847d82fe7a02.webp

For VPS / Dedicated server we are recommend to choose RSA key:

  • Keep mind Passphrase should be typed in every time when you are using the SSH key.

https://storage.selfhost.guru/images/0e1924a0-394e-4e93-9333-1615a48e9968.webp

Once you hit generate this is what you got:

- We do recommend back-up your SSH key to a Password manager for extra safety!

https://storage.selfhost.guru/images/66804ae3-f19e-46a0-9962-3671e4cf5b82.webp

Your public key is what you will need to use for setup any server to accept your SSHkey:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDMSZu8o4fpcxWdif3H/WThc9cK9b+xnAkZ76h2PhITQCQdIjQsFXPh+nL3FNITHD3LzNvpgOAIOiAkdkXynk3+9/zEuS1oafcFxeh6/kgLAEn6AMhDKSjpbs8cXZzRnuZ7yMZO3RfNrNGEXNlXHou0kt+z9p7IXmfion2d+sY0yH0v3tPClWX+sMLdvQQU6f31SHlXd6OFH/E00AdauoXeSdlA3Houq9g5R+pfET4tQ0CHEqQ0h4Su++NB9ojA9YS1OgLL1ZfYyj1/Lid5LAcVwaCloc4X2MRtrpYxt/+IwYhdLkkpTZGw+VxSaTQsnMISc+iUmHRyaLH5xfAUIsgDVHZWFbvun6DtB5x361kb23EXeG2pjfgZiLdQLPoBqtCsyboPl8iWijxvjNSq2VOp307lHIy9hhar3syh1Av5s8YGAHNjts3rBiV1JxWz141gbpP4bV3ziwOuxRN1sw1Hq/M/TqeZ56+Q7JhEuKPLEOIVvGGuUqPBPtevT71QO5YJN0bT2iD3BhcAf2ObyTjvAh6ZJqLXoRCnu+wt8nGdFcFGhc/ji/93JnhFW0FBQIyAI+FKTyaJiyFw4lBX0Efwp+aM3TjG9npfx5ANNVXYqI7kYCsJqui0wVQ9e6VCrP+Ziq1mihxFTENzACrwR5FwQZFMPqujer4g11vSVuNN2w== Generated By Termius

Connect to server SHH key #

Choose at credential your SSH key, and leave the password field empty:

https://storage.selfhost.guru/images/7f344789-7b1c-455a-b8fa-c65a94f40cd5.webp