Posted in linux
3799
11:00 pm, November 23, 2022
 

add ssh keys on your linux box in 10 seconds

Here i was typing in the ssh password over and over when connecting to ssh, when i could have just typed this one command and had my ssh keys copied to my linux box!

What was i doing all that time! :)

Yes this is the command. 

This is if you have already genetrated ssh keys on your local machine you are using to connect. 

ssh-copy-id username@remote_host

where your username is the one you use to ssh into your linux box, and the remote_host is your linux box domain name or ip address. 

Yep thats it, run that it copies the key, you can connect via ssh into the box... i know too easy!

Further Reading Here

Update: Also has a windows version of ssh-copy-id here that can be installed via chocolatey

View Statistics
This Week
28
This Month
149
This Year
725

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
A person who never made a mistake never tried anything new.
Albert Einstein
Random CSS Property

border-inline-start

The border-inline-start CSS property is a shorthand property for setting the individual logical inline-start border property values in a single place in the style sheet.
border-inline-start css reference