Public key authentication

This allows to run commands on the remote machine (e.g. cvs, file copy, etc) without typing the password every time.

ON YOUR LOCAL MACHINE (machine #1).

Check if you already have a RSA1 key generated (look if files ~/.ssh/identity and ~/.ssh/identity.pub exist).
If not, generate it.
From your home directory:
mkdir -p ~/.ssh 
ssh-keygen -t rsa1
Do not set a pass phase, just hit return on questions.

copy the public key (~/.ssh/identity.pub) to your home directory on machine #2.
scp ~/.ssh/identity.pub <your machine #2 username>@<machine #2 host>:~
<verbatim>
if your machine #2 is a CERN lxplus machines you may need to execute this command:
</verbatim>
/afs/cern.ch/project/cvs/dist/bin/set_ssh

ON A MACHINE #2.

Run:
cat ~/identity.pub >> ~/.ssh/authorized_keys

-- AnarManafov - 17 May 2005
Edit | Attach | Print version |  PDF | History: r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r1 - 2005-05-17, AnarManafov
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)