Changes

From SME Server
Jump to navigationJump to search
84 bytes removed ,  20:07, 25 October 2007
Line 49: Line 49:  
If you have created a contrib and wish to share with everyone then you can upload to your mirror.contribs.org/smeserver/contribs directory. To do so you can use ssh, rysnc, sftp or scp to upload to your contrib directory.
 
If you have created a contrib and wish to share with everyone then you can upload to your mirror.contribs.org/smeserver/contribs directory. To do so you can use ssh, rysnc, sftp or scp to upload to your contrib directory.
   −
Before you start using your favorite transfer method you may wish to set up your ssh keys to authenticate against shell.contribs.org or simply ignore and your be request to type your password that was originally set up with your contrib area.
+
Before you start using your favorite transfer method you may wish to set up your ssh keys to authenticate against shell.contribs.org or simply ignore and you would be requested to type your password that was originally set up with your contrib area.
{{Note box|
  −
If you want you can set up your contrib directory so that you can use ssh keys, if you do use ssh keys then you will need to make sure the you have the following permissions set correctly...
     −
- home dir must be 2750 (drwxr-s---)
+
If you do wish to use ssh authenticated keys then log in to ssh username@shell.contribs.org using our shell password, then first create your .ssh directory:
   −
- .ssh must be 0700 (drwx------)
+
mkdir .ssh
   −
- authorized_keys2 must be 0644 (-rw-r--r--)
+
Change the permissions on the .ssh directory:
}}
     −
So for example we would change the permissions on our /tmp/test directory by typing...
+
chmod 0700 .ssh
   −
  chmod 2750 /tmp/test
     −
Now if you haven't already create and change your permissions on the .ssh directory by typing...
+
Prepare our authorized keys file for our key to be copied over
   −
  mkdir /tmp/test/.ssh
+
  cat > .ssh/authorized_keys2 << EOF
  chmod 0700 /tmp/test/.ssh
+
 
 +
Then switch to your local box and copy your key:
 +
 +
{put your key here}
 +
 +
Then once you happy your key is copied over hit return and type:
 +
 
 +
EOF
 +
 
 +
Next change permission of your authorized_keys2 file:
 +
 
 +
  chmod 0644 .ssh/authorized_keys2
 +
 
 +
Now log out of shell and re log back in this time using your newly created ssh authenticated keys.
   −
Create your ssh keys and copy the contents of your public key in to the authorized_keys2 and remember to change permissions by typing...
     −
chmod 0644 /tmp/test/.ssh/authorized_keys2
      
Now you are ready to rsync your new .ssh keys to your contribs directory using your current password, once you have done the final rsync to upload your .ssh keys from now on you can log in using your ssh passphrase.
 
Now you are ready to rsync your new .ssh keys to your contribs directory using your current password, once you have done the final rsync to upload your .ssh keys from now on you can log in using your ssh passphrase.

Navigation menu