Simon Facciol
  • Home
ssh

Server ssh key login setup [OSX]

  • Simon Facciol

Simon Facciol

08 Feb 2016 • 1 min read
Server ssh key login setup [OSX]

Do you ever get fed up of having to enter the ssh password every time you need to access a server from the terminal. Setting up ssh-copy-id is easy and will make your life lazier, oops, easier.

1. Download and install ssh-copy-id using OSX homebrew or via git if you don't have homebrew installed.

sudo brew install ssh-copy-id or just use brew install ssh-copy-id

OR

sudo curl https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id
sudo chmod +x /usr/local/bin/ssh-copy-id

2. Then generate a key, unless you already have a public key.

ssh-keygen -t rsa

3. Then use ssh-copy-id to login and set the key pair on the server.

ssh-copy-id [USERNAME]@[HOSTNAME/IP]

e.g ssh-copy-id [email protected]

4. Enter the password you use to login to the server (this is done only once but it has to be done on all the hostnames unless the ssh key file is updated on all hosts).

 

References

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys–2

http://www.jacobtomlinson.co.uk/2013/01/24/ssh-copy-id-os-x/

Squarespace to Ghost

Squarespace to Ghost

I finally decided to take the leap and move from Squarespace.com to Ghost. It wasn't easy and I had to create a node.js script to import my posts in Ghost.
15 Feb 2020 2 min read
Understanding Blockchain Technology: 3. Characteristics of a blockchain

Understanding Blockchain Technology: 3. Characteristics of a blockchain

1. Data is always available as long as any of the nodes are online since the full copy of the data is stored on all the full nodes causing minimal disruption 2. Data is highly secure and immutable because the data is encrypted with strong cryptographic algorithms 3. Location of
23 Sep 2017 1 min read

Understanding Blockchain Technology: 2. Why was blockchain created?

Why was blockchain created? What is blockchain trying to achieve? As previous breakthroughs filled significant gaps to free civilisations from manipulations and dictatorships such as knowledge, power and distance, blockchain is going to increase the value of trust in data, as the history of that data will be proved and
23 Sep 2017
Simon Facciol © 2025
Powered by Ghost