The "Noob Link" Technical Reference
Pantz.org Index About Homepage


 ____   ____   _   _ 
/ ___| / ___| | | | |
\___ \ \___ \ | |_| |
 ___) | ___) ||  _  |
|____/ |____/ |_| |_|

 

This is how to setup SSH Public Key authentication for SSH1 and/or SSH2. You can find out what version of ssh is available on your machines by running 'ssh -V'. The following examples stipulate that you have a home directory on nfs. If you have a home directory on each machine you wish to use SSH Public Key Authentication, then you will need to copy the .ssh directory to each of these machines. You can copy the .ssh directory using the scp command.


SSH Version 1


root@server:/>
root@server:/>
root@server:/>
root@server:/>
root@server:/>
root@server:/>

mkdir ~/.ssh
ssh-keygen -t rsa1 -f ~/.ssh/identity
cp ~/.ssh/identity.pub ~/.ssh/authorized_keys
chmod 755 ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*

SSH Version 2


root@server:/>
root@server:/>
root@server:/>
root@server:/>
root@server:/>
root@server:/>

mkdir ~/.ssh
ssh-keygen -t dsa -f ~/.ssh/id_dsa
cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
chmod 755 ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*