Logging in on Unix without a password, aka public key authentication

Posted on November 12, 2008. Filed under: Open Solaris |

My progress of my OpenSolaris configuration is going at a steady pace, and it’s now time to do some migration of data. It has been written a thousand times before, but who cares, I’m going to write it again:

I want to login without passwords, so I can copy stuff using my laptop, but it in the background and get some well deserved (and needed) sleep.

It actually kinda easy, if you know how to do it:

On the machine which needs access:

ssh-keygen -t dsa
scp ~/.ssh/id_dsa.pub username@server.com:

And, on the machine you want to access:

cat id_dsa.pub >> .ssh/authorized_keys

Is it that easy? Yes, it is that easy!

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

2 Responses to “Logging in on Unix without a password, aka public key authentication”

RSS Feed for Don’t mind the language Comments RSS Feed

I understood that using scp can be pretty slow for transferring files (has something to do with the protocol supporting only smallish block sizes). I wonder what throughput you’ll be getting.

Hi Bart,

The speed I got was around 7MB/sec, on a 100MBit line. I guess it’s faster than SCP (less overhead), but I didn’t do any speed comparisons!


Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: