Changes

From SME Server
Jump to navigationJump to search
831 bytes added ,  19:45, 25 October 2007
Line 48: Line 48:     
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.
 +
{{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---)
 +
 +
- .ssh must be 0700 (drwx------)
 +
 +
- authorized_keys2 must be 0644 (-rw-r--r--)
 +
}}
 +
 +
So for example we would change the permissions on our /tmp/test directory by typing...
 +
 +
  chmod 2750 /tmp/test
 +
 +
Now if you haven't already create and change your permissions on the .ssh directory by typing...
 +
 +
mkdir /tmp/test/.ssh
 +
chmod 0700 /tmp/test/.ssh
 +
 +
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.
    
===Using SSH===
 
===Using SSH===
Line 140: Line 166:  
And thats it wait for mirrors to sync and sit back/relax.
 
And thats it wait for mirrors to sync and sit back/relax.
   −
{{Note box|
+
===Using SCP===
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...
+
You can send files by using scp:
 
  −
- home dir must be 2750 (drwxr-s---)
  −
 
  −
- .ssh must be 0700 (drwx------)
  −
 
  −
- authorized_keys2 must be 0644 (-rw-r--r--)
  −
}}
  −
 
  −
So for example we would change the permissions on our /tmp/test directory by typing...
  −
 
  −
  chmod 2750 /tmp/test
     −
Now if you haven't already create and change your permissions on the .ssh directory by typing...
+
[local@localhost contribs]$ scp  username@shell.contribs.org:~username/smeservercontribs/RPMS
 +
Enter passphrase for key '/home/username/.ssh/id_rsa':
 +
smeserver-contrib                                100%  103    0.1KB/s  00:00
 +
[local@localhost contribs]$
   −
mkdir /tmp/test/.ssh
+
Sit back and wait for mirrors to sync.
chmod 0700 /tmp/test/.ssh
  −
 
  −
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.  
+
{{Note box|The scp command only copies files or directories, it does not easily allow you to list your files on the shell.contribs.org host, or delete, copy or rename them. To do any of these interactively, you need to login via ssh.}}
    
<noinclude>[[Category:Howto]]</noinclude>
 
<noinclude>[[Category:Howto]]</noinclude>

Navigation menu