[ start | index | login ]
start > Virtual Brain > Linux > SSH Public Key Authentication

SSH Public Key Authentication

Created by stefan. Last edited by stefan, 3 years and 27 days ago. Viewed 362 times. #4
[diff] [history] [edit] [rdf]
labels
attachments
Easy, but I always forget how to do it. Do this on client side:

# generate a public/private keypair on host you want to connect from
ssh-keygen -t rsa
(enter passphrase if you like)

# copy public key to host you want to connect to # make sure we do not overwrite an authorized_keys2 file # on the server side by checking there first! scp ~/.ssh/id_rsa.pub someuser@someserverhost:/home/someuser/.ssh/authorized_keys2

# This should work without asking for a password now on the host you want to connect from: ssh -l someuser someserverhost

no comments | post comment
search www.stefanrufer.ch
Google

Content

Me?


Blog Calendar

< February 2012 >
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
26272829

Weblog summary 2007, 2006, 2005, 2004


Content managed by SnipSnap

M

snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt