Copy ssh Public key to Server in one line

Update (2011/02/06): you don't really need any of the commands below, you can just use the ssh-copy-id program that comes with ssh.

Here it is:

cat ~/.ssh/id_dsa.pub | ssh <a href="mailto:user@hostname">user@hostname</a> "cat - >> ~/.ssh/authorized_keys"

Apparently some people don't like this one that much. :-)

Here's an alternative:

ssh <a href="mailto:user@hostname">user@hostname</a> "echo `cat ~/.ssh/id_dsa.pub` >> ~/.ssh/authorized_keys"

It doesn't require the first cat or the pipe.

Tags: 

Comments

For NXT LVL Customers: Get Deezer Freemium* when you register for NXT LVL. Dial *111*128# to register for NXT LVL. Upgrade to Deezer Premium+ at the discounted rate of R29.99. Deezer app

Very good written article. It will be supportive to anyone who utilizes it, including me. Keep doing what you are doing – can’t wait to read more posts.
Friv 4

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing
www.onlinelogins.com

This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses.
online mba

ugg outlet
coach factory outlet
coach outlet
cheap nfl jerseys
nfl jerseys wholesale
ray ban sunglasses
cheap ray ban sunglasses
ray ban sunglasses
ray ban sunglasses discount
kate spade handbag
kate spade bags
canada goose jackets
canada goose outlet
air max 2018
moncler jackets outlet
moncler outlet
adidas yeezy
adidas yeezy boost
harden vol 1
nike air max
louboutin shoes
christian louboutin outlet
kate spade
kate spade handbags
nike shoes
fitflops sale
fitflops
cheap uggs
ugg boots for women
ugg boots outlet
ugg boots
ugg outlet
ugg outlet store
ugg sale
ugg boots on sale
uggs canada
ugg boots canada
canada goose jackets
canada goose
canada goose outlet
canada goose sale
canada goose outlet
canada goose sale
louis vuitton outlet
louis vuitton factory outlet
ugg ustralia
ugg boots
ugg ustralia
ugg australia
canada goose outlet
canada goose
burberry outlet
burberry sale
canada goose jackets
canada goose outlet
canada goose outlet
canada goose sale
cat boots
coach outlet
coach canada
canada goose outlet
canada goose sale
kate spade
kate spade outlet
longchamp outlet
longchamp handbags
louis vuitton outlet
louis vuitton outlet store
mbt shoes
michael kors outlet
michael kors outlet store
north face outlet
north face outlet online
polo ralph lauren
polo ralph lauren outlet online
red bottom shoes
louboutin shoes
timberland outlet
ugg boots
ugg boots on sale
ugg boots
ugg outlet
ugg slippers
ugg sandals
cheap uggs
cheap uggs
ugg sale
canada goose jackets
ugg boots
uggs outlet
moncler outlet
moncler jackets
ralph lauren outlet online
ralph lauren outlet
polo outlet
polo ralph lauren outlet online
air jordans
air jordan shoes
canada goose clothing
canada goose coats
canada goose jackets
canada goose coats
cheap uggs
coach factory outlet
coach outlet
coach outlet store online
coach outlet
coach outlet
coach factory outlet
coach factorty outlet
coach outlet
columbia sportswear
ray ban sunglasses
cheap ray ban sunglasses
hermes outlet
hermens bags
louis vuitton outlet
louis vuitton outlet store
moncler jackets
moncler coats
moncler outlet
moncler jackets
north face jackets
pandora charms sale clearance
pandora charms sale
ralph lauren outlet
polo ralph lauren outlet online
salvatore ferragamo shoes
salvatore ferragamo
timberland boots
toms outlet
tory burch outlet
ugg outlet
ugg boots
ugg boots
uggs on sale
ugg boots
uggs
ugg outlet
ugg boots
ugg shoes
ugg shoes
ugg outlet
uggs clearance
ugg outlet
ugg outlet online
louis vuitton
louis vuitton outlet online
burberry outlet
cheap jerseys
cheap jerseys from china
michael kors outlet
michael kors outlet online
nike air max
air max 2017
adidas superstar
fred perry
fred perry polo
louis vuitton outlet
louis vuitton outlet online
mbt shoes
michael kors outlet
michael kors outlet store
coach factory outlet
coach outlet online
canada goose outlet
canada goose jackets
burberry outlet
uggs clearance
canada goose outlet
canadian goose
ugg boots
cheap uggs
canada goose outlet
canada goose sale
canada goose jackets
canada goose clothing
ugg outlet
moncler outlet
moncler jackets
coach factorty outlet
coach outlet
canada goose jackets
canada goose uk
adidas shoes
cheap ray bans
cheap ray ban sunglasses
polo outlet
polo ralph lauren outlet online
canada goose outlet
canada goose
michael kors outlet
michael kors outlet clearance
air jordan shoes
jordan shoes
burberry outlet
burberry outlet store
north face jackets
ralph lauren outlet
polo ralph lauren outlet online
ugg australia
cheap jordans
cheap jordans for sale
ugg outlet
ugg uk
ugg
moncler jackets
canada goose jackets
canada goose
oakley sunglasses
ugg boots
ugg boots
ferragamo outlet
ferragamo shoes
burberry outlet
burberry
canada goose outlet
supreme clothing
uggs outlet
ugg outlet
the north face
north face outlet
moncler uk
moncler
canada goose jackets
canada goose
canada goose jackets
canada goose coats
michael kors outlet
michael kors outlet store
nike outlet
nike outlet store
moncler uk
moncler jackets
ugg outlet
ugg outlet online
gucci handbags
cheap ugg boots
ugg boots
supreme new york
supreme clothing
ugg canada
uggs canada
longchamp outlet
longchamp outlet online
north face jackets
north face outlet
north face jackets
ralph lauren outlet
polo ralph lauren outlet
ugg outlet
uggs clearance
canada goose jackets
ugg outlet
uggs outlet
ugg outlet
uggs outlet
canada goose outlet
ugg boots
canada goose sale
uggs on sale
uggs sale
ugg boots
ugg boots on sale
uggs outlet
ugg outlet
canada goose outlet
ugg australia
uggs canada
uggs
ralph lauren outlet
ugg outlet
ugg outlet
ugg outlet
ugg outlet
ugg outlet
ugg boots
canada goose jackets
canada goose jackets
canada goose outlet
canada goose outlet
ralph lauren
ralph lauren outlet
ugg outlet
ugg outlet
ugg outlet
canada goose outlet
canada goose outlet
ugg boots
ugg boots
canada goose outlet
canada goose outlet
canada goose outlet
ralph lauren outlet
2017.11.4yangping

Pages

Add new comment