Re: Distributed Database

From: Brett (rbretto@pacbell.net)
Date: 05/22/02


From: "Brett" <rbretto@pacbell.net>
Date: Wed, 22 May 2002 04:12:22 GMT

OpenSSH
generate an rsa keypair (> ssh-keygen -t rsa)
(When prompted do not enter a "passphrase" just enter twice)
copy the id_rsa.pub file to the server:~/.ssh/id_rsa.pub
create the file ~/.ssh/authorized_keys2 file by:
> cat id_rsa.pub >> authorized_keys2

The Important file here is the "private key"
client:~/.ssh/id_rsa
you need to protect this file.
Any one with this file can "impersonate" client: user

ssh2
generate a dsa keypair (> ssh-keygen2)
(When promped do not enter a "passphrase" just enter twice)
copy the id_dsa_1024_a.pub to the server:~/.ssh2/
edit server:~/.ssh2/authorization (create it if required)
add a line : id_dsa_1024_a.pub
edit the client~/.ssh2/identification
add a line : id_dsa_1024_a

The Important file here is the "private key"
client:~/.ssh2/id_dsa_1024_a
you need to protect this file.
Any one with this file can "impersonate" client: user

that's it sftp & ssh will no longer ask for a password

"Stephen Brewster" <steve@cite.co.uk> wrote in message
news:ud2k3k2taaltaf@corp.supernews.com...
> Somebody please help me on this one.
>
> We have a postgres have a postgres database running on a web server and
> another one running in the office. The database on the server is a
massively
> cut down version which only stores product information and current orders.
> What we are trying to do is periodically (through a cron job or some other
> means of scheduling) download and then remove all the recent order
> information from the web site and also upload any product changes from the
> the office. This will mean that a out staff simply have to changes the
local
> database and after a given time period these chages will be uploaded to
the
> web site. No user is allowed to edit information of the web site.
> Security is of paramount importance on this project as we will be dealing
> with oreder information (though no credit card numbers will be stored
> anywhere).
> It has been suggested within the company that we do a dump of changed
> information, upload it with SFTP and merge it into the remote system using
> SSH. These sounds all well and good but I cannot get SSH or SFTP to
connect
> without asking for a password (and I dont blame it either).
>
> ------------------------------------------------------
> Stephen Brewster
> Email: steve@cite.co.uk
> Tel: 0116 2335545
> Mobile: 07776 475849
> ICQ: 383095
> ------------------------------------------------------
>
> UNIX SEX
> unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep
>
>
> ------------------------------------------------------
> Stephen Brewster
> Email: steve@cite.co.uk
> Tel: 0116 2335545
> Mobile: 07776 475849
> ICQ: 383095
> ------------------------------------------------------
>
> UNIX SEX
> unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep
>
>
>
>



Relevant Pages

  • Re: Distributed Database
    ... (When prompted do not enter a "passphrase" just enter twice) ... generate a dsa keypair (> ssh-keygen2) ... > information from the web site and also upload any product changes from the ...
    (comp.security.ssh)
  • Re: Orbital X-Prize?
    ... >>orbital flight twice in one week using a fully reusable space craft. ... Personal web site: http:/www.moorecad.com/scott My electronics engineering consulting site: http://www.moorecad.com ISO 7185 Standard Pascal web site: http://www.moorecad.com/standardpascal Classic Basic Games web site: http://www.moorecad.com/classicbasic The IP Pascal web site, a high performance, highly portable ISO 7185 Pascal compiler system: http://www.moorecad.com/ippas Good does not always win. ...
    (sci.space.shuttle)
  • Abort/Dump in ClickOnce app before my code runs
    ... I have "Publish"ed other apps to the web site as a test and they ... I have gotten rid of the VB.Format conversions and use just "Format" ... IBM VM or MVS dump and I might get somewhere with it but this stuff is ... I have values for P1 through P7 including the program name twice and the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Nonsecure Items Dialgo Box
    ... This page contains both secure and nonsecure items. ... everytime move between a couple of pages in a web site that I use. ... I just clicked OK twice and went on, and then clicked twice when I went back ...
    (microsoft.public.windows.inetexplorer.ie6.browser)