Posted in linux
3609
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
53
This Month
294
This Year
535

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
Even if you fall on your face, you're still moving forward.
Victor Kiam
Random CSS Property

linear-gradient()

The linear-gradient() CSS function creates an image consisting of a progressive transition between two or more colors along a straight line. Its result is an object of the <gradient> data type, which is a special kind of <image>.
linear-gradient() css reference