Posted in linux
3789
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
43
This Month
139
This Year
715

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
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better. You won't believe what you can accomplish by attempting the impossible with the courage to repeatedly fail better.
Unknown
Random CSS Property

font-language-override

The font-language-override CSS property controls the use of language-specific glyphs in a typeface.
font-language-override css reference