Posted in linux
3737
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
37
This Month
235
This Year
663

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
There is a qualitative and quantitative difference between a day that begins with a little exercise, a book, meditation, a good meal, a thoughtful walk, and the start of a day that begins with a smartphone in bed.
Unknown
Random CSS Property

font-variant-east-asian

The font-variant-east-asian CSS property controls the use of alternate glyphs for East Asian scripts, like Japanese and Chinese.
font-variant-east-asian css reference